题解 | #矩形覆盖#
矩形覆盖
http://www.nowcoder.com/practice/72a5a919508a4251859fb2cfb987a0e6
另类爬楼梯
function rectCover(number)
{
// write code here
if(number===0)return 0
if(number===1)return 1
if(number===2) return 2
return rectCover(number-1)+rectCover(number-2)
}
module.exports = {
rectCover : rectCover
};