摘要: 题目描述: Implement int sqrt(int x). Compute and return the square root of x. x is guaranteed to be a non-negative integer. 本题让我们写一个类似sqrt()的函数,不过返回值和输入值都 阅读全文
posted @ 2018-02-05 10:26 宵夜在哪 阅读(94) 评论(0) 推荐(0) 编辑
摘要: 题目描述: 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 阅读全文
posted @ 2018-02-05 10:12 宵夜在哪 阅读(90) 评论(0) 推荐(0) 编辑