爬楼梯。题意是给一个数字n代表楼梯的高度,你可以每次爬一步或者两步,求有多少种不同的爬法。例子, Example 1: Input: 2 Output: 2 Explanation: There are two ways to climb to the top. 1. 1 step + 1 step ...
分类:
其他好文 时间:
2020-02-13 09:56:32
阅读次数:
70
What was the main objective of early mountain climbers? Morden alpinists try to climb mountains by a route which will give them good sport, and the mo ...
分类:
其他好文 时间:
2020-02-08 17:44:18
阅读次数:
73
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 can you cl ...
分类:
其他好文 时间:
2020-01-21 16:15:13
阅读次数:
70
On a staircase, the i-th step has some non-negative cost cost[i] assigned (0 indexed). Once you pay the cost, you can either climb one or two steps. Y ...
分类:
其他好文 时间:
2019-12-13 14:20:55
阅读次数:
92
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 can you cl ...
分类:
其他好文 时间:
2019-12-13 14:08:00
阅读次数:
76
$T1:合并集合$ 断环成链,区间$dp$ $T2:climb$ 显然如果确定了最终的药那么前面每次一定尽量选$A-B$最大的药 考虑按照$A-B$排序,枚举每一个时间作为答案 那么有两种情况 1,用还没有吃过的药跳出 2,用之前吃过的药跳出 对于第二个情况,设取出的药为$m$,考虑取出一个之前吃过 ...
分类:
其他好文 时间:
2019-11-09 11:26:39
阅读次数:
79
emmet语法 Child: > nav>ul>li <nav> <ul> <li></li> </ul> </nav> Sibling: + div+p+bq <div></div> <p></p> <blockquote></blockquote> Climb-up: ^ div+div>p>s ...
分类:
其他好文 时间:
2019-09-16 13:30:04
阅读次数:
64
Jack was trying to go up the hill. He does not have any problem in climbing up or coming down the hill if the slope is consistently either increasing ...
分类:
其他好文 时间:
2019-09-12 09:58:27
阅读次数:
101
https://www.codewars.com/kata/how-many-stairs-will-suzuki-climb-in-20-years/train/java My Solution : ...
分类:
编程语言 时间:
2019-07-17 18:26:00
阅读次数:
93
Description: 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 wa ...
分类:
编程语言 时间:
2019-04-09 20:39:21
阅读次数:
213