Tiger's leetcode solution
Monday, November 25, 2013
Insertion Sort List
›
Q: Sort a linked list using insertion sort. A: /** * Definition for singly-linked list. * public class ListNode { * int val; * ...
Friday, November 8, 2013
Wildcard Matching ~~~~~~~~~~~~~~~~~~~~~~~
›
Implement wildcard pattern matching with support for '?' and '*' . '?' Matches any single character. '*' M...
Thursday, November 7, 2013
145. Binary Tree Postorder Traversal -----------E
›
Given the root of a binary tree, return the postorder traversal of its nodes' values. Follow up: Recursive solution is trivial, cou...
128. Longest Consecutive Sequence
›
Q: Given an unsorted array of integers, find the length of the longest consecutive elements sequence. For example, Given [100, 4, 200, 1,...
129. Sum Root to Leaf Numbers --M
›
You are given the root of a binary tree containing digits from 0 to 9 only. Each root-to-leaf path in the tree represents a number. Fo...
‹
›
Home
View web version