leetcode-List
iteye_9192
这个作者很懒,什么都没留下…
展开
-
leetcode - Swap Nodes in Pairs
Given a linked list, swap every two adjacent nodes and return its head. For example,Given 1->2->3->4, you should return the list as 2->1->4->3. Your algorithm should use only cons...原创 2015-03-25 13:51:29 · 53 阅读 · 0 评论 -
Add Two Number
You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and return it as a li...原创 2015-05-01 10:40:21 · 94 阅读 · 0 评论 -
Largest Rectangle in Histogram
参考博客: http://blog.csdn.net/doc_sgl/article/details/11805519 Given n non-negative integers representing the histogram's bar height where the width of each bar is 1, find the area of largest rectan...原创 2015-05-05 14:19:37 · 103 阅读 · 0 评论