上一页 1 ··· 33 34 35 36 37 38 39 40 41 ··· 54 下一页

2019年3月20日

摘要: 参考 1. https://blog.csdn.net/weixin_41055137/article/details/81174443 完 阅读全文
posted @ 2019-03-20 10:14 鹅要长大 阅读(1565) 评论(0) 推荐(0)
摘要: 参考 1. https://blog.csdn.net/xiaodong_11/article/details/81985700; 完 阅读全文
posted @ 2019-03-20 10:13 鹅要长大 阅读(618) 评论(0) 推荐(0)
摘要: 参考 1. https://www.cnblogs.com/zf-blog/p/6075286.html; 完 阅读全文
posted @ 2019-03-20 09:58 鹅要长大 阅读(545) 评论(0) 推荐(0)

2019年3月19日

摘要: 参考 1. MTCNN笔记; 2. MTCNN_paper; 完 阅读全文
posted @ 2019-03-19 17:18 鹅要长大 阅读(197) 评论(0) 推荐(0)

2019年3月14日

摘要: problem 459. Repeated Substring Pattern solution1: 这道题给了我们一个字符串,问其是否能拆成n个重复的子串。那么既然能拆分成多个子串,那么每个子串的长度肯定不能大于原字符串长度的一半,那么我们可以从原字符串长度的一半遍历到1,如果当前长度能被总长度整 阅读全文
posted @ 2019-03-14 11:46 鹅要长大 阅读(263) 评论(0) 推荐(0)
摘要: problem 455. Assign Cookies solution1: 对小朋友的满意程度(也就是胃口)和当前cookies的大小分别进行排序,满足一个小朋友则加1;否则比较下一个cookie是否满足小朋友。记住前提是每个小朋友最多只能得到一个cookie.也就是贪婪算法。 solution2 阅读全文
posted @ 2019-03-14 11:13 鹅要长大 阅读(172) 评论(0) 推荐(0)
摘要: problem 453. Minimum Moves to Equal Array Elements 相当于把不等于最小值的数字都减到最小值所需要次数的累加和。 solution1: 记得初始化,否则默认初始值是最小值。 solution2: 换一种思路,就是数组之和减去最小值乘以数组长度之积。 参 阅读全文
posted @ 2019-03-14 10:48 鹅要长大 阅读(157) 评论(0) 推荐(0)

2019年3月13日

摘要: problem 448. Find All Numbers Disappeared in an Array solution: 参考 1. Leetcode_448. Find All Numbers Disappeared in an Array; 2. GrandYang; 完 阅读全文
posted @ 2019-03-13 15:46 鹅要长大 阅读(120) 评论(0) 推荐(0)
摘要: https://docs.nvidia.com/cuda/cuda-toolkit-release-notes/index.html https://docs.nvidia.com/cuda/archive/9.2/cuda-installation-guide-linux/index.html T 阅读全文
posted @ 2019-03-13 09:41 鹅要长大 阅读(7261) 评论(0) 推荐(0)

2019年3月11日

摘要: https://blog.csdn.net/lzzyok/article/details/77413968 https://blog.csdn.net/tiweeny/article/details/78384633 https://www.cnblogs.com/Jeb15/p/6080331.h 阅读全文
posted @ 2019-03-11 20:08 鹅要长大 阅读(171) 评论(0) 推荐(0)
摘要: problem 447. Number of Boomerangs 也就是回旋镖的数量问题,以一个点为端点,若存在n个相等的点,那么就有两种情况可以构成三元数组,abc和acb是不同,也就是排列问题,有n(n-1)个。那么遍历每个点存在的三元数组求和即为所求。 re: 1. Leetcode_447 阅读全文
posted @ 2019-03-11 10:41 鹅要长大 阅读(213) 评论(0) 推荐(0)

2019年3月8日

摘要: problem 443. String Compression a: ss ss solution1: class Solution { public: int compress(vector<char>& chars) { if(chars.empty()) return 0; string re 阅读全文
posted @ 2019-03-08 15:02 鹅要长大 阅读(225) 评论(0) 推荐(0)
摘要: problem 441. Arranging Coins solution1: solution2: solution3: 参考 1. Leetcode_441. Arranging Coins; 完 阅读全文
posted @ 2019-03-08 13:38 鹅要长大 阅读(195) 评论(0) 推荐(0)

2019年3月7日

摘要: 前言 应领导要求需要将最初级版本的算法移植到ARM板子上,并进行优化,以期达到实时。 平台 移植前: TX2 移植后: ARM() 背景:最早版本在TX2上运行时间大约有60ms左右。 具体操作 1.ARM环境配置 说实话,这次移植只是将平台换成了ARM,仍然是在ubuntu系统上运行,没什么大的问 阅读全文
posted @ 2019-03-07 11:15 鹅要长大 阅读(2513) 评论(0) 推荐(0)
摘要: problem 438. Find All Anagrams in a String solution1: class Solution { public: vector<int> findAnagrams(string s, string p) { if(s.empty()) return {}; 阅读全文
posted @ 2019-03-07 09:38 鹅要长大 阅读(222) 评论(0) 推荐(0)

2019年3月6日

摘要: problem 437. Path Sum III 参考 1. Leetcode_437. Path Sum III; 完 阅读全文
posted @ 2019-03-06 09:20 鹅要长大 阅读(115) 评论(0) 推荐(0)

2019年3月5日

摘要: problem 434. Number of Segments in a String solution1: 当前字符不为空且前一个字符为空,或者字符串首字符不为空,则为一个分割串。利用的是每一个分割串的前一个字符为空的特性,注意第一个分割串。 参考 1. Leetcode_434. Number 阅读全文
posted @ 2019-03-05 20:21 鹅要长大 阅读(139) 评论(0) 推荐(0)
摘要: problem 429. N-ary Tree Level Order Traversal solution1:Iteration 参考 1. Leetcode_429. N-ary Tree Level Order Traversal; 完 阅读全文
posted @ 2019-03-05 19:59 鹅要长大 阅读(163) 评论(0) 推荐(0)
摘要: problem 427. Construct Quad Tree 参考 1. Leetcode_427. Construct Quad Tree; 完 阅读全文
posted @ 2019-03-05 19:42 鹅要长大 阅读(148) 评论(0) 推荐(0)

2019年3月4日

摘要: problem 415. Add Strings solution: 参考 1. Leetcode_415. Add Strings; 完 阅读全文
posted @ 2019-03-04 19:08 鹅要长大 阅读(270) 评论(0) 推荐(0)
上一页 1 ··· 33 34 35 36 37 38 39 40 41 ··· 54 下一页

导航