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