![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
算法题
Survfath刘颖
pku硕士在读,自然语言处理,社交网络大数据分析,深度学习
展开
-
面经准备:剑指offer 刷题 代码及笔记 C/C++ 版
#include #include #include #include #include #include using namespace std; //1.数组 //2.链表 // class ListNode{ public: int val; ListNode *next; ListNode(int x){ val = x; next = NULL; }原创 2018-04-05 10:32:37 · 253 阅读 · 0 评论 -
面试准备:剑指offer 刷题时候的笔记
刷题trick bool duplicate(int numbers[], int length, int* duplication) { int *copy = new int[length]();//copy一一对应 int count=0;//dup计数器 for(int i=0;i if(copy[numbers[i]]==-1){ duplication[count++]原创 2018-04-05 10:44:24 · 245 阅读 · 0 评论