Spurs

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2017年9月1日

摘要: You are climbing a stair case. It takes n steps to reach to the top. Each time you can either climb 1 or 2 steps. In how many distinct ways can you cl 阅读全文
posted @ 2017-09-01 11:46 英雄与侠义的化身 阅读(124) 评论(0) 推荐(0)

摘要: Follow up for "Unique Paths": Now consider if some obstacles are added to the grids. How many unique paths would there be? An obstacle and empty space 阅读全文
posted @ 2017-09-01 11:15 英雄与侠义的化身 阅读(114) 评论(0) 推荐(0)

摘要: 声明3行4列的数组 cpp const int m = 3, n = 4; vector A(m); // 3 rows for(int i = 0; i 阅读全文
posted @ 2017-09-01 09:34 英雄与侠义的化身 阅读(226) 评论(0) 推荐(0)