上一页 1 ··· 90 91 92 93 94 95 96 97 98 ··· 114 下一页
摘要: https://leetcode.com/problems/brick-wall/#/description 阅读全文
posted @ 2017-06-09 08:39 Sempron2800+ 阅读(122) 评论(0) 推荐(0) 编辑
摘要: https://leetcode.com/problems/minimum-number-of-arrows-to-burst-balloons/#/solutions 阅读全文
posted @ 2017-06-09 08:31 Sempron2800+ 阅读(124) 评论(0) 推荐(0) 编辑
摘要: https://leetcode.com/problems/maximum-product-of-word-lengths/#/description 阅读全文
posted @ 2017-06-08 08:29 Sempron2800+ 阅读(111) 评论(0) 推荐(0) 编辑
摘要: https://leetcode.com/problems/delete-operation-for-two-strings/#/solutions 思路:本题使用动态规划,将问题转化为求:最长公共子序列。 阅读全文
posted @ 2017-06-07 09:13 Sempron2800+ 阅读(202) 评论(0) 推荐(0) 编辑
摘要: https://leetcode.com/problems/find-duplicate-file-in-system/#/solutions 阅读全文
posted @ 2017-06-06 09:56 Sempron2800+ 阅读(176) 评论(0) 推荐(0) 编辑
摘要: https://leetcode.com/problems/can-place-flowers/#/description 阅读全文
posted @ 2017-06-05 09:00 Sempron2800+ 阅读(194) 评论(0) 推荐(0) 编辑
摘要: https://leetcode.com/problems/construct-string-from-binary-tree/#/description 阅读全文
posted @ 2017-06-05 08:23 Sempron2800+ 阅读(226) 评论(0) 推荐(0) 编辑
摘要: https://leetcode.com/problems/longest-word-in-dictionary-through-deleting/#/description 补充一个python的实现: 再补充一个java实现: 阅读全文
posted @ 2017-06-04 09:57 Sempron2800+ 阅读(150) 评论(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+ 阅读(168) 评论(0) 推荐(0) 编辑
摘要: /* * (最大)堆的向下调整算法 * * 注:数组实现的堆中,第N个节点的左孩子的索引值是(2N+1),右孩子的索引是(2N+2)。 * 其中,N为数组下标索引值,如数组中第1个数对应的N为0。 * * 参数说明: * a -- 待排序的数组 * start -- 被下调节点的起始位置(一般为0, 阅读全文
posted @ 2017-06-03 10:06 Sempron2800+ 阅读(150) 评论(0) 推荐(0) 编辑
上一页 1 ··· 90 91 92 93 94 95 96 97 98 ··· 114 下一页