上一页 1 2 3 4 5 6 7 8 9 ··· 30 下一页
摘要: content: 1.new delete [] 2.lseek usage 3.exit 4.const & 5.FILE fopen 6.fread fwrite 1.用new声明的内存空间 char *path = new char[10]; delete时需要加[] delete[] pat 阅读全文
posted @ 2020-11-10 15:04 黑暗尽头的超音速炬火 阅读(210) 评论(0) 推荐(0) 编辑
摘要: Leetcode236 Q:只判断左边=p q 直接返回 右边为何不判断? https://www.cnblogs.com/grandyang/p/4641968.html class Solution { public: TreeNode* lowestCommonAncestor(TreeNod 阅读全文
posted @ 2020-10-30 10:39 黑暗尽头的超音速炬火 阅读(156) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> using namespace std; //a b c float a*x^2+b*x+c=0 struct ReturnType { int type; vector<float> store; }; //multi-back vector<float> 阅读全文
posted @ 2020-10-28 20:35 黑暗尽头的超音速炬火 阅读(143) 评论(0) 推荐(0) 编辑
摘要: 特殊的二分查找 普通的二分是在数组中查找元素,但这个是查找index。利用大小关系,快速排序的原理,C++中主要用到了swap交换元素,swap只有O(1)的复杂度,因为只需要交换内部的指针不需要遍历整个容器。 阅读全文
posted @ 2020-10-28 18:35 黑暗尽头的超音速炬火 阅读(62) 评论(0) 推荐(0) 编辑
摘要: use 3D version to calculate how much water the model can contain this problem need use dfs,from the edge part which mustn't be answer,for the edge can 阅读全文
posted @ 2020-10-28 16:21 黑暗尽头的超音速炬火 阅读(47) 评论(0) 推荐(0) 编辑
摘要: KMP need understand by step or will m 阅读全文
posted @ 2020-10-28 16:02 黑暗尽头的超音速炬火 阅读(94) 评论(0) 推荐(0) 编辑
摘要: 1.question: find the longest length in the string has k types of characters 2.code attention a.length calculate need plus 1 i-left+1 b.if one characte 阅读全文
posted @ 2020-10-28 09:28 黑暗尽头的超音速炬火 阅读(70) 评论(0) 推荐(0) 编辑
摘要: -ResNet is used to extract image features,obtain the output of the specified layer. Build the mapping for the description to generate the word vector, 阅读全文
posted @ 2020-10-24 08:08 黑暗尽头的超音速炬火 阅读(84) 评论(0) 推荐(0) 编辑
摘要: 1.type bytes and str 阅读全文
posted @ 2020-10-22 18:03 黑暗尽头的超音速炬火 阅读(99) 评论(0) 推荐(0) 编辑
摘要: 1.list列表合并用join >>> a = ["hello", "world"]>>> a['hello', 'world']>>> ' '.join(a)'hello world'>>> ','.join(a)'hello,world'>>> ''.join(a)'helloworld' 2. 阅读全文
posted @ 2020-10-21 14:49 黑暗尽头的超音速炬火 阅读(109) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 30 下一页