爬楼梯
文章平均质量分 61
jmspan
这个作者很懒,什么都没留下…
展开
-
LeetCode 259. 3Sum Smaller(三数值和)
原题网址:https://leetcode.com/problems/3sum-smaller/ Given an array of n integers nums and a target, find the number of index triplets i, j, k with 0 that satisfy the condition nums[i] + nums[j]原创 2016-04-09 08:31:17 · 1615 阅读 · 1 评论 -
LeetCode 70. Climbing Stairs(爬楼梯)
原题网址:https://leetcode.com/problems/climbing-stairs/ You are climbing a stair case. It takes n steps to reach to the top. Each time you can either climb 1 or 2 steps. In how many distinct ways原创 2016-05-22 00:05:13 · 458 阅读 · 0 评论 -
LeetCode 91. Decode Ways(解码方法)
原题网址:https://leetcode.com/problems/decode-ways/ A message containing letters from A-Z is being encoded to numbers using the following mapping: 'A' -> 1 'B' -> 2 ... 'Z' -> 26 Given an enco原创 2016-05-23 00:42:32 · 2594 阅读 · 1 评论