02 2022 档案

摘要:CodeTop 第一页 206. 反转链表 - 力扣(LeetCode) (leetcode-cn.com) 1 class Solution { 2 public: 3 ListNode* reverse(ListNode* pre,ListNode* head) { 4 if(head==nul 阅读全文
posted @ 2022-02-28 19:47 剩下的交给时间就好 阅读(366) 评论(0) 推荐(0)
摘要:\r\n \r : return 到当前行的最左边。 \n: newline 向下移动一行,并不移动左右。 Linux中\n表示回车+换行; Windows中\r\n表示回车+换行 编译c文件 gcc test.c -o test //产生可执行文件 ./test gcc -c test.c //这 阅读全文
posted @ 2022-02-23 18:49 剩下的交给时间就好 阅读(46) 评论(0) 推荐(0)
摘要:虚拟机没网导致的域名解析失败 https://blog.csdn.net/dhffaw/article/details/109147984 Xshell连接虚拟机时报错Could not connect to ‘192.168.85.134‘ (port 22): Connection failed 阅读全文
posted @ 2022-02-23 17:10 剩下的交给时间就好 阅读(755) 评论(0) 推荐(0)
摘要:1 class Solution { 2 public: 3 int minDistance(string word1, string word2) { 4 if(word1.size()==0||word2.size()==0) 5 return max(word1.size(),word2.si 阅读全文
posted @ 2022-02-07 12:47 剩下的交给时间就好 阅读(17) 评论(0) 推荐(0)
摘要:拆解为子问题最优 局部最优导致全局最优 严格证明可行:数学归纳法,反证法证明贪心可行,一般举反例就行 排序!!! 举简单例子,看看怎么解,能不能推导出一般解法,也就是局部推整体 455. 分发饼干 - 力扣(LeetCode) (leetcode-cn.com) 1 class Solution { 阅读全文
posted @ 2022-02-05 13:21 剩下的交给时间就好 阅读(74) 评论(0) 推荐(0)

点击右上角即可分享
微信分享提示