8/30/2014

[LC] Copy List with Random Pointer



Copy List with Random Pointer

Keywords: LinkedList, Careful.

[LC] Valid Palindrome


Valid Palindrome

transform, isalnum.

Keywords: STL.

[LC] Implement strStr()


Implement strStr()

transform.

Keywords: STL.

[LC] String to Integer (atoi)


String to Integer (atoi)

Keywords: Very careful.

[LC] Longest Palindromic Substring


Longest Palindromic Substring

Keywords: DP.

[LC] Wildcard Matching


Wildcard Matching

Keywords: NULL.

[LC] Regular Expression Matching


Regular Expression Matching

Keywords: DFS.

[LC] Longest Common Prefix


Longest Common Prefix

Keywords: NULL.

[LC] Count and Say


Count and Say


Keywords: STL.

8/29/2014

8/25/2014

[LC] Unique Binary Search Trees I & II


Unique Binary Search Trees I

Keywords: 1-D dynamic programming.



Unique Binary Search Trees II

Build a function whose input is the range of the subtree and output is the subtrees based on this range.

vector<TreeNode*> generate(int beg, int end){
    /*...*/
    return ans;
}

Keywords: Bottom up.