摘要: 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 @ 2018-03-30 16:01 同销万古愁 阅读(136) 评论(0) 推荐(0) 编辑
摘要: Given a sorted linked list, delete all duplicates such that each element appear only once. 给定一个有序数组,删除其中所有重复的元素,使每个元素只出现一次~ For example,Given 1->1->2, 阅读全文
posted @ 2018-03-30 15:31 同销万古愁 阅读(99) 评论(0) 推荐(0) 编辑
摘要: 实现针对int类型的sqrt(int x)。计算并返回x的平方根,x确定为非负整数 Implement int sqrt(int x). Compute and return the square root of x. x is guaranteed to be a non-negative int 阅读全文
posted @ 2018-03-30 13:48 同销万古愁 阅读(185) 评论(0) 推荐(0) 编辑