Collection of algorithm solutions with explanations and complexity analysis. Interview preparation focused.
Difficulty | Solved |
---|---|
Easy | 6 |
Medium | 5 |
Hard | 0 |
Total | 11 |
# | Title | Difficulty | Solution | Topics |
---|---|---|---|---|
1 | Two Sum | 🟢 Easy | Python | Array, Hash Table |
54 | Spiral Matrix | 🟡 Medium | Python | Array, Matrix |
88 | Merge Sorted Array | 🟢 Easy | Python | Array, Two Pointers |
128 | Longest Consecutive Sequence | 🟡 Medium | Python | Array, Hash Table |
217 | Contains Duplicate | 🟢 Easy | Python | Array, Hash Table |
238 | Product of Array Except Self | 🟡 Medium | Python | Array, Prefix Sum |
242 | Valid Anagram | 🟢 Easy | Python | Hash Table, String |
# | Title | Difficulty | Solution | Topics |
---|---|---|---|---|
200 | Number of Islands | 🟡 Medium | Python | Array, BFS, DFS |
# | Title | Difficulty | Solution | Topics |
---|---|---|---|---|
20 | Valid Parentheses | 🟢 Easy | Python | String, Stack |
# | Title | Difficulty | Solution | Topics |
---|---|---|---|---|
125 | Valid Palindrome | 🟢 Easy | Python | Two Pointers, String |
167 | Two Sum II | 🟡 Medium | Python | Array, Two Pointers |
- Hash Table: Two Sum, Group Anagrams
- Two Pointers: Container With Most Water, 3Sum
- Sliding Window: Longest Substring Without Repeating
- Stack: Valid Parentheses, Daily Temperatures
- Binary Search: Search in Rotated Sorted Array
Languages: Python 3.11, Java 17
Focus Areas: Arrays, Strings, Trees, Graphs, Dynamic Programming
- LinkedIn: linkedin.com/in/adamshimou
- GitHub: github.com/adamkshimou
⭐ Star this repo if you find it helpful!