题解 | #矩形覆盖#
矩形覆盖
http://www.nowcoder.com/practice/72a5a919508a4251859fb2cfb987a0e6
class Solution { public: int rectCover(int number) { if (number < 3)return number; return rectCover(number-1)+rectCover(number-2); } };
矩形覆盖
http://www.nowcoder.com/practice/72a5a919508a4251859fb2cfb987a0e6
class Solution { public: int rectCover(int number) { if (number < 3)return number; return rectCover(number-1)+rectCover(number-2); } };
相关推荐