摘要:
You are climbing a stair case. It takesnsteps to reach to the top.Each time you can either climb 1 or 2 steps. In how many distinct ways can you climb to the top?==============================================================Fisrt, I tried recursive way.1 class Solution {2 public:3 int climbStair... 阅读全文
posted @ 2013-10-14 17:03
昱铭
阅读(305)
评论(0)
推荐(0)
摘要:
Given a sorted linked list, delete all duplicates such that each element appear onlyonce.For example,Given1->1->2, return1->2.Given1->1->2->3->3, return1->2->3.==========================================================Nothing, patience, AC once. 1 /** 2 * Definition for si 阅读全文
posted @ 2013-10-14 16:37
昱铭
阅读(148)
评论(0)
推荐(0)

浙公网安备 33010602011771号