Author: github.com/wenjingxue
General Data Structure
Leet code solutions
Those can speed up the problem solving.
# | Name | Use | Wiki Link |
---|---|---|---|
1 | Trie | String/Dictionary | https://en.wikipedia.org/wiki/Trie |
I summaries the key for unlocking each problem. Please give a ⭐ if it inspired you.
# | Title | Difficulty | Solution |
---|---|---|---|
1 | Two Sum | Easy | Use dictionary |
85 | Maximal Rectangle | Hard | 2D to 1D and use Stack |
198 | House Robber | Medium | Dynamic Programming |
328 | Odd Even Linked List | Medium | Use two pointers to track progress |
1217 | Minimum Cost to Move Chips to The Same Position | Easy | Math |
1446 | Consecutive Characters | Easy | Comparison within string |
2098 | Subsequence of Size K With the Largest Even Sum | Medium | minHeap |
2096 | Step-By-Step Directions From a Binary Tree Node to Another | Medium | Depth first search |