06 2017 档案
leetcode377
摘要:https://leetcode.com/problems/combination-sum-iv/#/description 阅读全文
posted @ 2017-06-09 09:18 Sempron2800+ 阅读(126) 评论(0) 推荐(0)
leetcode424
摘要:https://leetcode.com/problems/longest-repeating-character-replacement/#/description 阅读全文
posted @ 2017-06-09 09:16 Sempron2800+ 阅读(139) 评论(0) 推荐(0)
leetcode398
摘要:https://leetcode.com/problems/random-pick-index/#/description 阅读全文
posted @ 2017-06-09 09:14 Sempron2800+ 阅读(106) 评论(0) 推荐(0)
leetcode319
摘要:https://leetcode.com/problems/bulb-switcher/#/description 阅读全文
posted @ 2017-06-09 09:12 Sempron2800+ 阅读(113) 评论(0) 推荐(0)
leetcode516
摘要:https://leetcode.com/problems/longest-palindromic-subsequence/#/description 阅读全文
posted @ 2017-06-09 09:04 Sempron2800+ 阅读(134) 评论(0) 推荐(0)
leetcode46
摘要:https://leetcode.com/problems/permutations/#/solutions 经过学习和思考,采用另一种写法实现。更容易理解 补充一个python的实现: 阅读全文
posted @ 2017-06-09 09:01 Sempron2800+ 阅读(206) 评论(0) 推荐(0)
leetcode337
摘要:https://leetcode.com/problems/house-robber-iii/#/description 补充一个python的实现: 阅读全文
posted @ 2017-06-09 08:51 Sempron2800+ 阅读(220) 评论(0) 推荐(0)
leetcode287
摘要:https://leetcode.com/problems/find-the-duplicate-number/#/description 阅读全文
posted @ 2017-06-09 08:49 Sempron2800+ 阅读(225) 评论(0) 推荐(0)
leetcode328
摘要:https://leetcode.com/problems/odd-even-linked-list/#/description 补充一个python的实现: 补充一个简化版本的,执行效率更高: 阅读全文
posted @ 2017-06-09 08:48 Sempron2800+ 阅读(125) 评论(0) 推荐(0)
leetcode241
摘要:https://leetcode.com/problems/different-ways-to-add-parentheses/#/description 补充一个python的 实现: 阅读全文
posted @ 2017-06-09 08:46 Sempron2800+ 阅读(125) 评论(0) 推荐(0)
leetcode230
摘要:https://leetcode.com/problems/kth-smallest-element-in-a-bst/#/description 补充一个python的实现,使用二叉树的中序遍历: 阅读全文
posted @ 2017-06-09 08:43 Sempron2800+ 阅读(126) 评论(0) 推荐(0)
leetcode423
摘要:https://leetcode.com/problems/reconstruct-original-digits-from-english/#/description 阅读全文
posted @ 2017-06-09 08:41 Sempron2800+ 阅读(140) 评论(0) 推荐(0)
leetcode554
摘要:https://leetcode.com/problems/brick-wall/#/description 阅读全文
posted @ 2017-06-09 08:39 Sempron2800+ 阅读(128) 评论(0) 推荐(0)
leetcode452
摘要:https://leetcode.com/problems/minimum-number-of-arrows-to-burst-balloons/#/solutions 阅读全文
posted @ 2017-06-09 08:31 Sempron2800+ 阅读(132) 评论(0) 推荐(0)
leetcode318
摘要:https://leetcode.com/problems/maximum-product-of-word-lengths/#/description 阅读全文
posted @ 2017-06-08 08:29 Sempron2800+ 阅读(119) 评论(0) 推荐(0)
leetcode583
摘要:https://leetcode.com/problems/delete-operation-for-two-strings/#/solutions 思路:本题使用动态规划,将问题转化为求:最长公共子序列。 阅读全文
posted @ 2017-06-07 09:13 Sempron2800+ 阅读(215) 评论(0) 推荐(0)
leetcode609
摘要:https://leetcode.com/problems/find-duplicate-file-in-system/#/solutions 阅读全文
posted @ 2017-06-06 09:56 Sempron2800+ 阅读(182) 评论(0) 推荐(0)
leetcode605
摘要:https://leetcode.com/problems/can-place-flowers/#/description 阅读全文
posted @ 2017-06-05 09:00 Sempron2800+ 阅读(199) 评论(0) 推荐(0)
leetcode606
摘要:https://leetcode.com/problems/construct-string-from-binary-tree/#/description 阅读全文
posted @ 2017-06-05 08:23 Sempron2800+ 阅读(233) 评论(0) 推荐(0)
leetcode524
摘要:https://leetcode.com/problems/longest-word-in-dictionary-through-deleting/#/description 补充一个python的实现: 再补充一个java实现: 阅读全文
posted @ 2017-06-04 09:57 Sempron2800+ 阅读(156) 评论(0) 推荐(0)
基数排序
摘要:/* * 获取数组a中最大值 * * 参数说明: * a -- 数组 * n -- 数组长度 */ private int GetMax(int[] a) { int max; max = a[0]; for (int i = 1; i < a.Length; i++) if (a[i] > max 阅读全文
posted @ 2017-06-03 10:07 Sempron2800+ 阅读(178) 评论(0) 推荐(0)
选择排序——2堆排序实现
摘要:/* * (最大)堆的向下调整算法 * * 注:数组实现的堆中,第N个节点的左孩子的索引值是(2N+1),右孩子的索引是(2N+2)。 * 其中,N为数组下标索引值,如数组中第1个数对应的N为0。 * * 参数说明: * a -- 待排序的数组 * start -- 被下调节点的起始位置(一般为0, 阅读全文
posted @ 2017-06-03 10:06 Sempron2800+ 阅读(156) 评论(0) 推荐(0)
选择排序——1简单选择排序实现
摘要:public void SelectSort(int[] ary) { // 需要遍历获得最小值的次数 for (int i = 0; i < ary.Length - 1; i++) { int temp = 0; int index = i; // 用来保存最小值得索引 //在后面的序列中,寻找 阅读全文
posted @ 2017-06-03 09:38 Sempron2800+ 阅读(210) 评论(0) 推荐(0)
leetcode565
摘要:https://leetcode.com/problems/array-nesting/#/description 阅读全文
posted @ 2017-06-02 11:14 Sempron2800+ 阅读(127) 评论(0) 推荐(0)
leetcode598
摘要:https://leetcode.com/problems/range-addition-ii/#/description 阅读全文
posted @ 2017-06-01 11:09 Sempron2800+ 阅读(108) 评论(0) 推荐(0)
leetcode599
摘要:https://leetcode.com/problems/minimum-index-sum-of-two-lists/#/description 阅读全文
posted @ 2017-06-01 08:56 Sempron2800+ 阅读(135) 评论(0) 推荐(0)