Medium
文章平均质量分 54
bakergus
这个作者很懒,什么都没留下…
展开
-
2. Add Two Numbers
Click here to try this problem on LeetcodeProblems with tag “Linked List”:Linked List的head,是一个指针,里面存储了链表的第一个节点的内存地址。 有了head指针以后,在第一个节点前面插入或者删除第一个节点,操作就和对其他节点的操作统一了。不管链表是否为空,head指针一定不为空。![这里写图片描述](http原创 2016-11-11 16:46:12 · 425 阅读 · 0 评论 -
80. Remove Duplicates from Sorted Array II
Click here to try this problem on Leetcode Follow up for “Remove Duplicates”: What if duplicates are allowed at most twice?For example, Given sorted array nums = [1,1,1,2,2,3],Your function should r原创 2016-11-13 00:46:19 · 240 阅读 · 0 评论 -
122. Best Time to Buy and Sell Stock II
Say you have an array for which the i th element is the price of a given stock on day i.Design an algorithm to find the maximum profit. You may complete as many transactions as you like (ie, buy one an原创 2016-11-13 13:01:47 · 415 阅读 · 0 评论