Sean's Algorithm Cheatsheet
Take notes to forget. by Sean
https://seangone.gitbooks.io/sean-s-cheatsheet/content/
Algorithms
Algorithm Basics
- Backtracking
Time & Space Complexity Analysis
Physical Data Structures
- Array
implement ArrayList- Unsorted Array
- Sorting Algortihms
Quick sortMerge sortComparsion
- Sorted Array
- Binary Search
Quick Select- k-th smallest
- Two Pointers
- Char Array
- String
Remove EmptySpace in StringimplementEncoding and Decoding
- Linked List
Reverse a Linked List
Logical Data Structure
implementEncoding and Decoding- Binary Tree
- Binary Search Tree
- red black tree
isBSTInsert/Delete in BST
check completepre/in/post order traversal- recursive and iterative styleN-ary tree serialize/deserializeSibiling jump in treeLowest Common AncestorPath SumMaximum Path Sum Binary Tree I
- Binary Search Tree
- Graph
Connectivity
- Queue & Stack
- Heap
Top K
- Hash Table
implement HashMapimplement LRUCacheimplement HashCode()
- Trie tree
- Segmentation tree
Other Problems
- Dynamic Programming
Minimum Cuts For Palindromes
Skyline
Java Coding
StringBuilderimplement iterator- Thread safe - Mutex synchronized
Lock
OOD
Parking LotBlackJackFactory patternSingleton
System Design
In-memory File System