摘要: Spleeter 阅读全文
posted @ 2021-05-17 20:04 secx 阅读(197) 评论(0) 推荐(0)
摘要: 35题链接 https://leetcode-cn.com/problems/search-insert-position/ 暴力法: class Solution { public: int searchInsert(vector<int>& nums, int target) { for(int 阅读全文
posted @ 2020-11-15 14:41 secx 阅读(29) 评论(0) 推荐(0)
摘要: ctrl+shift+A //快速调整格式 阅读全文
posted @ 2020-11-14 15:45 secx 阅读(140) 评论(0) 推荐(0)
摘要: #include<iostream> #include<vector> using namespace std; vector<int> mut(vector<int> A,int a){ int t = 0; //记录余数 vector<int> C; for(int i = A.size()-1 阅读全文
posted @ 2020-10-18 19:58 secx 阅读(65) 评论(0) 推荐(0)
摘要: #include<iostream> #include<vector> using namespace std; vector<int> mut(vector<int>A,int a){ vector<int> C; int t = 0; for(int i = 0;i<A.size() || t; 阅读全文
posted @ 2020-10-18 19:57 secx 阅读(74) 评论(0) 推荐(0)
摘要: #include<iostream> #include<vector> using namespace std; vector<int> add(vector<int> &A,vector<int> &B){ vector<int> C; if(A.size()<B.size()) return a 阅读全文
posted @ 2020-10-18 19:55 secx 阅读(64) 评论(0) 推荐(0)
摘要: c++ stl set and map 关联容器 (1)仅包含关键字key的叫set 包含键值对key-value的叫map 前者叫集合set后者叫映射map (2)key可以重读的就加一个multi (3)是否按照hash函数映射的方式组织元素,是就加上unordered。 set和mutiset 阅读全文
posted @ 2020-10-17 14:22 secx 阅读(76) 评论(0) 推荐(0)
摘要: #include<iostream> #include<vector> using namespace std; vector<int> mute(vector<int> A,vector<int> B) { int t = 0; vector<int> C; for(int i = 0; i<A. 阅读全文
posted @ 2020-10-16 12:30 secx 阅读(56) 评论(0) 推荐(0)