
leetcode
文章平均质量分 70
跑着去未来
这个作者很懒,什么都没留下…
展开
-
leetcode#70 Climbing Stairs
leetcode#70 Climbing Stairs 题目描述: 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 climb to the top?原创 2015-05-30 01:54:03 · 656 阅读 · 0 评论 -
leetcode#136 Single Number
leetcode 136 single number Given an array of integers, every element appears twice except for one. Find that single one. Your algorithm should have a linear runtime complexity. can't use extra space.原创 2015-06-04 13:02:23 · 658 阅读 · 0 评论 -
leetcode#19 Remove Nth Node From End of List
leetcode 19 删除单链表倒数第n个结点 Given a linked list, remove the nth node from the end of list and return its head.原创 2015-06-03 20:01:31 · 592 阅读 · 0 评论 -
leetcode#121 Best Time to Buy and Sell Stock
github链接leetcode本题链接题目描述 Say you have an array for which the ith element is the price of a given stock on day i. If you were only permitted to complete at most one transaction (ie, buy one and sel原创 2015-06-06 00:23:33 · 423 阅读 · 0 评论