只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2019-07-12 22:09 Venux 阅读(26) 评论(0) 推荐(0) 编辑
摘要: 85. 最大矩形 - 力扣(LeetCode) 参考dp求最大字串和的思想,将二维dp转化为一维的形式,将当前列的和当成一维的数进行dp即可。这题和求最大子矩阵和的dp思路一样。 1 class Solution { 2 public: 3 int maximalRectangle(vector<v 阅读全文
posted @ 2024-02-02 11:02 Venux 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 1.析构函数为什么是虚函数 将可能会被继承的父类的析构函数设置为虚函数,可以保证当我们new一个子类,然后使用基类指针指向该子类对象,释放基类指针时可以释放掉子类的空间,防止内存泄漏。 2.对多态的理解,应用场景 阅读全文
posted @ 2021-06-28 11:28 Venux 阅读(35) 评论(0) 推荐(0) 编辑
摘要: git教程 Git教程 - 廖雪峰的官方网站 (liaoxuefeng.com) C++ primer 第五版 https://e-m.jd.com/static/read/dist/index.html?ebookId=30656278&name=C%2B%2B Primer中文版(第5版)&in 阅读全文
posted @ 2021-06-16 10:31 Venux 阅读(47) 评论(0) 推荐(0) 编辑
摘要: https://www.cnblogs.com/witty/archive/2012/04/06/2435311.html 阅读全文
posted @ 2021-06-09 20:01 Venux 阅读(35) 评论(0) 推荐(0) 编辑
摘要: https://zhuanlan.zhihu.com/p/136891972 阅读全文
posted @ 2021-06-07 14:48 Venux 阅读(71) 评论(0) 推荐(0) 编辑
摘要: 先配置mingw https://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win64/Personal%20Builds/mingw-builds/8.1.0/threads-posix/seh/?tdso 阅读全文
posted @ 2021-04-16 16:03 Venux 阅读(105) 评论(0) 推荐(0) 编辑
摘要: http://www.pipioj.online/problem.php?id=1019 1 #define IO std::ios::sync_with_stdio(0); 2 #define bug(x) cout<<#x<<" is "<<x<<endl 3 #include <bits/st 阅读全文
posted @ 2021-03-14 00:45 Venux 阅读(83) 评论(0) 推荐(0) 编辑
摘要: http://www.pipioj.online/problem.php?id=1024 1 #define IO std::ios::sync_with_stdio(0); 2 #define bug(x) cout<<#x<<" is "<<x<<endl 3 #include <bits/st 阅读全文
posted @ 2021-03-13 23:08 Venux 阅读(88) 评论(0) 推荐(0) 编辑
摘要: http://www.pipioj.online/problem.php?id=1023 每次把当前的放在能排的当中最矮的一队里就ok 1 #define IO std::ios::sync_with_stdio(0); 2 #define bug(x) cout<<#x<<" is "<<x<<e 阅读全文
posted @ 2021-03-13 22:09 Venux 阅读(86) 评论(0) 推荐(0) 编辑
摘要: http://www.pipioj.online/problem.php?id=1022 1 #define IO std::ios::sync_with_stdio(0); 2 #define bug(x) cout<<#x<<" is "<<x<<endl 3 #include <bits/st 阅读全文
posted @ 2021-03-11 21:33 Venux 阅读(107) 评论(0) 推荐(0) 编辑