TongTong Shi's Blog
A Playground to Share My Knowledge
Remove Duplicates Remove Duplicates
LeetCode Q 80 - Remove DuplicatesGiven a sorted array nums, remove the duplicates in-place such that duplicates appeared
2019-05-13 Tong Shi
Rotate List Rotate List
LeetCode Q 61 - Rotate ListGiven a linked list, rotate the list to the right by k places, where k is non-negative. Examp
2019-05-13 Tong Shi
Trapping Rain Water II Trapping Rain Water II
LeetCode Q 407 - Trapping Rain Water IIGiven an m x n matrix of positive integers representing the height of each unit c
2019-05-13 Tong Shi
Add and Search Word - Data structure design Add and Search Word - Data structure design
LeetCode Q 211 - Add and Search Word - Data structure designDesign a data structure that supports the following two ope
2019-05-13 Tong Shi
Implement Trie (Prefix Tree) Implement Trie (Prefix Tree)
LeetCode Q 208 - Implement Trie (Prefix Tree)Implement a trie with insert, search, and startsWith methods. Example:Trie
2019-05-13 Tong Shi
Remove Nth Node From End of List Remove Nth Node From End of List
LeetCode Q 19 - Remove Nth Node From End of ListGiven a linked list, remove the n-th node from the end of list and retur
2019-05-13 Tong Shi
41 / 79