- 博客(3)
- 收藏
- 关注
原创 C++ 类初值
1、const 只能在类的初始化列表中进行初始化。class A{ const int a;public: A(int data): a(data){} ...};2、只有const static可以在定义时赋值。class B{ const static int a = 2; ...};3、java中如果成员域...
2020-05-04 23:23:25
508
原创 马拉车(求最长回文字符串)
参考:https://segmentfault.com/a/1190000008484167 https://www.bilibili.com/video/BV11E411j7TM求最长回文字符串暴力法 时间复杂度 O()中心扩展算法 要分奇数子字符串与偶数子字符串 时间复杂度 O()string ...
2020-04-24 20:16:53
203
原创 线段树
参考 :https://www.bilibili.com/video/BV1cb411t7AM 建树void build_tree(int arr[], int tree[], int node, int start, int end){ if(start == end){ tree[node] = arr[start]; return; } int mid ...
2020-04-24 14:25:57
150
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅