网站首页 站内搜索

搜索结果

查询Tags标签: vector,共有 875条记录
  • MindSpore解读评注(5)对ccsrc\pipeline\jit\parse\python_adapter.cc的部分注释

    对ccsrc/minddata/dataset/include/dataset的注释 DataHelper,一个通用的数据帮助类,这里是mind数据集包含的数据集数据助手 知识浅薄,还有许多未理解之处,欢迎各位纠正、讨论 路径:mindsspore/ccsrc/minddata/dataset/include/dataset #include "minddata/datas…

    2021/8/3 14:06:38 人评论 次浏览
  • leetcode56. 合并区间

    https://leetcode-cn.com/problems/merge-intervals/主要在于两个循环,内循环用于合并小区间,外循环决定了合并之后剩下多少个区间class Solution { public:vector<vector<int>> merge(vector<vector<int>>& intervals) {sort(intervals.be…

    2021/8/3 6:07:39 人评论 次浏览
  • leetcode56. 合并区间

    https://leetcode-cn.com/problems/merge-intervals/主要在于两个循环,内循环用于合并小区间,外循环决定了合并之后剩下多少个区间class Solution { public:vector<vector<int>> merge(vector<vector<int>>& intervals) {sort(intervals.be…

    2021/8/3 6:07:39 人评论 次浏览
  • 743. Network Delay Time[Medium](Leetcode每日一题-2021.08.02)

    Problem You are given a network of n nodes, labeled from 1 to n. You are also given times, a list of travel times as directed edges times[i] = (ui, vi, wi), where ui is the source node, vi is the target node, and wi is the time it takes for a signal t…

    2021/8/2 23:08:58 人评论 次浏览
  • 743. Network Delay Time[Medium](Leetcode每日一题-2021.08.02)

    Problem You are given a network of n nodes, labeled from 1 to n. You are also given times, a list of travel times as directed edges times[i] = (ui, vi, wi), where ui is the source node, vi is the target node, and wi is the time it takes for a signal t…

    2021/8/2 23:08:58 人评论 次浏览
  • 谈谈 C++ STL 中的迭代器

    C++中的迭代器和指针 在前面的内容中我们简单讲过,STL主要是由三部分组成容器(container),包括vector,list,set,map等 泛型算法(generic algorithm),用来操作这些容器,包括find(),sort(),replace()等 迭代器(iterator),泛型算法操作容器的工具,是连接容器…

    2021/8/2 12:05:55 人评论 次浏览
  • 谈谈 C++ STL 中的迭代器

    C++中的迭代器和指针 在前面的内容中我们简单讲过,STL主要是由三部分组成容器(container),包括vector,list,set,map等 泛型算法(generic algorithm),用来操作这些容器,包括find(),sort(),replace()等 迭代器(iterator),泛型算法操作容器的工具,是连接容器…

    2021/8/2 12:05:55 人评论 次浏览
  • leetcode算法题--Letter Case Permutation

    原题链接:https://leetcode.com/problems/letter-case-permutation/ class Solution { public:vector<string> res;vector<string> letterCasePermutation(string s) {dfs(s, 0);return res;}void dfs(string s, int i) {if (i == s.size()) {res.push_back(…

    2021/8/2 1:05:55 人评论 次浏览
  • leetcode算法题--Letter Case Permutation

    原题链接:https://leetcode.com/problems/letter-case-permutation/ class Solution { public:vector<string> res;vector<string> letterCasePermutation(string s) {dfs(s, 0);return res;}void dfs(string s, int i) {if (i == s.size()) {res.push_back(…

    2021/8/2 1:05:55 人评论 次浏览
  • C++vector模拟实现

    我可以接受失败,但绝对不能接受自己都未曾奋斗过。

    2021/8/1 17:38:52 人评论 次浏览
  • C++vector模拟实现

    我可以接受失败,但绝对不能接受自己都未曾奋斗过。

    2021/8/1 17:38:52 人评论 次浏览
  • AtCoder Beginner Contest 212【A - E】

    比赛链接:https://atcoder.jp/contests/abc212/tasks A - Alloy 代码 #include <bits/stdc++.h> using namespace std; int main() {ios::sync_with_stdio(false);cin.tie(nullptr);int a, b;cin >> a >> b;if (a > 0 and b > 0) {cout <<…

    2021/8/1 6:07:31 人评论 次浏览
  • AtCoder Beginner Contest 212【A - E】

    比赛链接:https://atcoder.jp/contests/abc212/tasks A - Alloy 代码 #include <bits/stdc++.h> using namespace std; int main() {ios::sync_with_stdio(false);cin.tie(nullptr);int a, b;cin >> a >> b;if (a > 0 and b > 0) {cout <<…

    2021/8/1 6:07:31 人评论 次浏览
  • 旋转数组(初级算法)——多种方法求解

    题目: 给定一个数组,将数组中的元素向右移动 k 个位置,其中 k 是非负数。 示例 1:输入:  nums = [1,2,3,4,5,6,7],  k = 3 输出:  [5,6,7,1,2,3,4] 解释: 向右旋转 1 步:  [7,1,2,3,4,5,6] 向右旋转 2 步:  [6,7,1,2,3,4,5] 向右旋转 3 步:  [5,6,7,1,2,3,4]示例…

    2021/7/31 20:06:29 人评论 次浏览
  • 旋转数组(初级算法)——多种方法求解

    题目: 给定一个数组,将数组中的元素向右移动 k 个位置,其中 k 是非负数。 示例 1:输入:  nums = [1,2,3,4,5,6,7],  k = 3 输出:  [5,6,7,1,2,3,4] 解释: 向右旋转 1 步:  [7,1,2,3,4,5,6] 向右旋转 2 步:  [6,7,1,2,3,4,5] 向右旋转 3 步:  [5,6,7,1,2,3,4]示例…

    2021/7/31 20:06:29 人评论 次浏览
扫一扫关注最新编程教程