上一页 1 ··· 20 21 22 23 24 25 26 27 28 ··· 99 下一页
摘要: https://blog.csdn.net/helloiamclh/article/details/77932774 阅读全文
posted @ 2018-09-15 16:55 有梦就要去实现他 阅读(95) 评论(0) 推荐(0) 编辑
摘要: count()用来查找set中某个某个键值出现的次数 https://blog.csdn.net/lym940928/article/details/79671879 阅读全文
posted @ 2018-09-15 16:41 有梦就要去实现他 阅读(100) 评论(0) 推荐(0) 编辑
摘要: 牛顿迭代法 https://blog.csdn.net/hnu2012/article/details/72598038 https://www.cnblogs.com/liujinhong/p/6014973.html 重新找了一个方便理解的代码: https://www.cnblogs.com/ 阅读全文
posted @ 2018-09-15 15:24 有梦就要去实现他 阅读(108) 评论(0) 推荐(0) 编辑
摘要: 动态规划可以解 阅读全文
posted @ 2018-09-15 13:39 有梦就要去实现他 阅读(79) 评论(0) 推荐(0) 编辑
摘要: 1.链表反转 2.快排 3.m*k n*k两矩阵计算欧几里得距离np.tile 4.链表排序,要求时间复杂度小于O(N^2),空间O(1),不允许改变链表的值 5.2sum及其变体 6.给一个数组和target,找到和为target的数对,找出所有,重复也视为不同的方案7.给定0到n-1,有m个规则 阅读全文
posted @ 2018-09-15 11:22 有梦就要去实现他 阅读(614) 评论(0) 推荐(0) 编辑
摘要: class Solution { public: int invalid = 1; int StrToInt(string str) { bool minus = false; int index = 0; long long num = 0; if(str.size() != 0 && s... 阅读全文
posted @ 2018-09-14 11:58 有梦就要去实现他 阅读(143) 评论(0) 推荐(0) 编辑
摘要: class Solution { public: int TreeDepth(TreeNode* pRoot) { if(pRoot == NULL) return 0; int depth,left,right; left = TreeDepth(pRoot->left); righ... 阅读全文
posted @ 2018-09-14 10:19 有梦就要去实现他 阅读(76) 评论(0) 推荐(0) 编辑
摘要: int maxProduct(int length){ if(length < 2) return 0; if(length = 2) return 1; if(length = 3) return 2; int numof3 = length/3; if(length - numof3*3 == 1... 阅读全文
posted @ 2018-09-14 10:11 有梦就要去实现他 阅读(92) 评论(0) 推荐(0) 编辑
摘要: 注意multiset的一个bug: multiset带一个参数的erase函数原型有两种。一是传递一个元素值,如上面例子代码中,这时候删除的是集合中所有值等于输入值的元素,并且返回删除的元素个数;另外一种是传递一个指向某个元素的iterator,这时候删除的就是这个对应的元素,无返回值。 https 阅读全文
posted @ 2018-09-14 09:37 有梦就要去实现他 阅读(179) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/otuhacker/article/details/10366563 每次是小数的最后一个,然后用的next位置进行的交换,如果第二个数比第一个数小,就相当于第二数和自己进行交换 链表只能从前往后 阅读全文
posted @ 2018-09-13 21:38 有梦就要去实现他 阅读(1779) 评论(0) 推荐(0) 编辑
上一页 1 ··· 20 21 22 23 24 25 26 27 28 ··· 99 下一页