题解 | #矩形覆盖 和跳台阶一样#
矩形覆盖
http://www.nowcoder.com/practice/72a5a919508a4251859fb2cfb987a0e6
public class Solution {
public int rectCover(int target) {
if(target <= 2){
return target;
}
return rectCover(target - 1) + rectCover(target - 2);
}
}