Solution to Reverse Nodes in k-Group by LeetCode

24 Apr

Question: http://oj.leetcode.com/problems/reverse-nodes-in-k-group/ Question Name: Reverse Nodes in k-Group

Solution to Swap Nodes in Pairs by LeetCode

11 Apr

Question: http://oj.leetcode.com/problems/swap-nodes-in-pairs/ Question Name: Swap Nodes in Pairs

Solution to Merge k Sorted Lists by LeetCode

11 Apr

Question: http://oj.leetcode.com/problems/merge-k-sorted-lists/ Question Name: Merge k Sorted Lists

Solution to Generate Parentheses by LeetCode

11 Apr

Question: http://oj.leetcode.com/problems/generate-parentheses/ Question Name: Generate Parentheses A good question to show the good side of recursion. Memorization could improve the performance.

Solution to Valid Parentheses by LeetCode

11 Apr

Question: http://oj.leetcode.com/problems/valid-parentheses/ Question Name: Valid Parentheses

Solution to Remove Nth Node From End of List by LeetCode

11 Apr

Question: http://oj.leetcode.com/problems/remove-nth-node-from-end-of-list/ Question Name: Remove Nth Node From End of List

Solution to 4Sum by LeetCode

8 Apr

Quesion: http://oj.leetcode.com/problems/4sum/ Question Name: 4Sum or 4-sum The key point is to prune when further qualified combination is not possible.

Solution to Letter Combinations of a Phone Number by LeetCode

5 Apr

Question: http://oj.leetcode.com/problems/letter-combinations-of-a-phone-number/ Question Name: Letter Combinations of a Phone Number

Solution to 3Sum Closest by LeetCode

5 Apr

Question: http://oj.leetcode.com/problems/3sum-closest/ Question Name: 3Sum Closest

Solution to Longest Common Prefix by LeetCode

5 Apr

Question: http://oj.leetcode.com/problems/longest-common-prefix/ Question Name: Longest Common Prefix