- 博客(2)
- 资源 (1)
- 收藏
- 关注
原创 leetcode494 TargetSum 非动态规划的解法
算法小白,看到这道题的时候怎么想都觉得应该是递归的办法来解决,于是写了一版递归的解法,可能是数据量不太复杂所以也accept了,第一版的时候最后一个全0数组的case没有通过,看看提交结果,反正最后一个case了,就随便加了一下。题目如下:You are given a list of non-negative integers, a1, a2, ..., an, and a
2017-09-23 16:26:16
203
原创 leetcode646 Maximum Length of Pair Chain java解题代码
题目You are given n pairs of numbers. In every pair, the first number is always smaller than the second number.Now, we define a pair (c, d) can follow another pair (a, b) if and only ifb .
2017-09-07 21:50:23
219
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人