- 博客(3)
- 收藏
- 关注
原创 最大子数组问题
寻找A的和最大的非空连续子数组 #include <iostream> #include <cstdio> #include <string> #include <algorithm> #include <vector> #include <math.h> #include <climits> using namespace std; //17 100 113 110 85 105 102 86 63 81 101
2021-05-01 09:42:08
56
原创 雨水问题 C/C++
也是前几天的调剂机试题,没写出来果然是因为考场太紧张了???? #include <iostream> #include <cstdio> #include <string> #include <algorithm> #include <vector> #include <math.h> using namespace std; int capacity_caculate(int *num, int start, int end
2021-04-19 16:32:19
218
原创 蛇形矩阵 C/C++
前几天南科大复试机式,遗憾没过,选择题目出现失误,最终50分,多个矩阵相乘哪一题我没有想出到底是哪个刁钻的矩阵卡了我,而南科大只有全部用例通过才有分数,因此机式没过。 第一题是蛇形矩阵,前天机式没有选这题,早知道选这题机式应该就能过关,今天思路+代码只花了23分钟,代码如下,矩阵大小可以自行修改。 #include <iostream> #include <cstdio> using namespace std; short status = 0; int matrix[1
2021-04-19 13:26:00
170
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人