- 博客(2)
- 资源 (1)
- 收藏
- 关注
原创 10.【动态规划】Decode Ways--Time Limit Exceeded
leetcode url:https://leetcode.com/problems/decode-ways/public class Solution { public int numDecodings(String s) { s=s.trim(); if(s==null || s.equals("") || s.charAt(0)=='0' || s.co
2016-08-15 13:40:45 326
原创 9.【动态规划】 Climbing Stairs --Accepted code
leetcode url:https://leetcode.com/problems/climbing-stairs/ f(n)=f(n-1)+f(n-2) public int climbStairs(int n) { int r=0; int pre1=2; int pre2=1; if(n<=0) ret
2016-08-08 15:44:45 366
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人