摘要:
#include<iostream> #include<string> #include<vector> #include<algorithm> using namespace std; vector<string> re{ {" "},{",."},{"abc"},{"def"},{"ghi"}, 阅读全文
摘要:
#include<iostream> #include<vector> #include<string> using namespace std; int max = 100; //分配函数 void alloc(vector<vector<int>> &address,int size) { if 阅读全文
摘要:
#include<iostream> #include<string> #include<stack> #include<algorithm> using namespace std; string op(int num, string& str) { string temp; for (int i 阅读全文
摘要:
#include<deque> #include<iostream> #include<vector> #include<algorithm> #include<string> //每次蛇移动只会有3种情况: // //1.撞墙(坐标越界)直接返回长度; //2.空格 第一步:将空格坐标body.p 阅读全文
摘要:
寻找2个有序数组的中位数 [4. 寻找两个正序数组的中位数 - 力扣(LeetCode)][https://leetcode.cn/problems/median-of-two-sorted-arrays/] double findMedianSortedArrays(vector<int>& nu 阅读全文
摘要:
华为机试输出指定字母在字符串的中的索引) #include<iostream> #include<vector> #include<string> #include<algorithm> using namespace std; char findk(string s, int k) { sort( 阅读全文
摘要:
华为机试句子重量-华为机试 #include<iostream> #include<string> #include<vector> using namespace std; int main() { string s; int i=0; getline(cin, s); s += ' '; int 阅读全文
摘要:
最大股票收益 对应的是122. 买卖股票的最佳时机 II - 力扣(LeetCode) #include<iostream> #include<string> #include<vector> using namespace std; int main() { string s; getline(c 阅读全文
摘要:
字符串子序列[https://www.online1987.com/%e5%ad%97%e7%ac%a6%e4%b8%b2%e5%ad%90%e5%ba%8f%e5%88%97/] #define _CRT_SECURE_NO_WARNINGS 1//可省略 #include<iostream> u 阅读全文
摘要:
路灯照明 [(https://www.online1987.com/路灯照明/)] #include<iostream> #include<climits> #include<vector> #include<algorithm> using namespace std; int main() { 阅读全文