【剑指offer】跳台阶扩展问题
跳台阶扩展问题
http://www.nowcoder.com/questionTerminal/22243d016f6b47f2a6928b4313c85387
解题思路:见跳台阶扩展问题 讨论榜第一
function jumpFloorII(number) { // write code here if(number === 1 || number === 0){ return 1; }else{ return 2 * jumpFloorII(number - 1); } }