2014年5月3日

Binary Tree Preorder Traversal

摘要: Link:http://oj.leetcode.com/problems/binary-tree-preorder-traversal/Given a binary tree, return thepreordertraversal of its nodes' values.For example:... 阅读全文

posted @ 2014-05-03 22:15 Atlas-Zzz 阅读(111) 评论(0) 推荐(0) 编辑

Balanced Binary Tree

摘要: Link:http://oj.leetcode.com/problems/balanced-binary-tree/Given a binary tree, determine if it is height-balanced.For this problem, a height-balanced ... 阅读全文

posted @ 2014-05-03 09:39 Atlas-Zzz 阅读(110) 评论(0) 推荐(0) 编辑

Swap Nodes in Pairs

摘要: Link:http://oj.leetcode.com/problems/swap-nodes-in-pairs/Given a linked list, swap every two adjacent nodes and return its head.For example,Given1->2-... 阅读全文

posted @ 2014-05-03 06:28 Atlas-Zzz 阅读(112) 评论(0) 推荐(0) 编辑

Reverse Nodes in k-Group

摘要: Link:http://oj.leetcode.com/problems/reverse-nodes-in-k-group/Given a linked list, reverse the nodes of a linked listkat a time and return its modifie... 阅读全文

posted @ 2014-05-03 05:54 Atlas-Zzz 阅读(118) 评论(0) 推荐(0) 编辑

Reverse Linked List II

摘要: Link:http://oj.leetcode.com/problems/reverse-linked-list-ii/Reverse a linked list from positionmton. Do it in-place and in one-pass.For example:Given1... 阅读全文

posted @ 2014-05-03 05:19 Atlas-Zzz 阅读(270) 评论(0) 推荐(0) 编辑

2014年5月2日

Remove Nth Node From End of List

摘要: Link:http://oj.leetcode.com/problems/remove-nth-node-from-end-of-list/Given a linked list, remove thenthnode from the end of list and return its head.... 阅读全文

posted @ 2014-05-02 03:50 Atlas-Zzz 阅读(119) 评论(0) 推荐(0) 编辑

Remove Duplicates from Sorted List II

摘要: Link:http://oj.leetcode.com/problems/remove-duplicates-from-sorted-list-ii/Given a sorted linked list, delete all nodes that have duplicate numbers, l... 阅读全文

posted @ 2014-05-02 01:42 Atlas-Zzz 阅读(97) 评论(0) 推荐(0) 编辑

Remove Duplicates from Sorted List

摘要: Link:http://oj.leetcode.com/problems/remove-duplicates-from-sorted-list/Given a sorted linked list, delete all duplicates such that each element appea... 阅读全文

posted @ 2014-05-02 01:09 Atlas-Zzz 阅读(78) 评论(0) 推荐(0) 编辑

Partition List

摘要: Link:http://oj.leetcode.com/problems/partition-list/Given a linked list and a valuex, partition it such that all nodes less thanxcome before nodes gre... 阅读全文

posted @ 2014-05-02 00:57 Atlas-Zzz 阅读(110) 评论(0) 推荐(0) 编辑

Merge Two Sorted Lists

摘要: Link:http://oj.leetcode.com/problems/merge-two-sorted-lists/Merge two sorted linked lists and return it as a new list. The new list should be made by ... 阅读全文

posted @ 2014-05-02 00:22 Atlas-Zzz 阅读(117) 评论(0) 推荐(0) 编辑

导航