摘要: public int numTilings(int N) { // dp转移方程: dp(n) = 2 dp(n 1) + dp(n 3), 时间复杂度O(N), 空间复杂度O(1) if (N == 0) { return 0; } if (N == 1) { return 1; } if (N 阅读全文
posted @ 2019-08-24 19:51 lasclocker 阅读(405) 评论(0) 推荐(0) 编辑