The number of LeetCode questions is increasing every week. I'll keep updating for full summary and better solutions. Stay tuned for updates. (Notes: "📖" means you need to subscribe to LeetCode premium membership for the access to premium questions.)
- Bit Manipulation
- Array
- String
- Linked List
- Stack
- Queue
- Heap
- Tree
- Hash Table
- Math
- Two Pointers
- Sort
- Recursion
- Binary Search
- Binary Search Tree
- Breadth-First Search
- Depth-First Search
- Backtracking
- Dynamic Programming
- Greedy
- Geometry
- Design
- [SQL]
- [Shell Script]
| # | Title | Solution | Time | Space | Difficulty | Tag | Note |
|---|---|---|---|---|---|---|---|
| 136 | Single Number | Python Scala |
O(n) | O(1) | Easy | ||
| 190 | Reverse Bits | Python | O(1) | O(1) | Easy | ||
| 191 | Number of 1 Bits | Python | O(1) | O(1) | Easy | ||
| 231 | Power of Two | Python | O(1) | O(1) | Easy | ||
| 342 | Power of Four | Python | O(1) | O(1) | Easy | ||
| 371 | Sum of Two Integers | Python | O(1) | O(1) | Easy | ||
| 389 | Find the Difference | Python | O(1) | O(1) | Easy |
| 137 | Single Number II | Python | O(n) | O(1) | Medium | | | | 201 | Bitwise AND of Numbers Range | Python | O(1) | O(1) | Medium | | | | 260 | Single Number III | Python | O(1) | O(1) | Medium | | |
| # | Title | Solution | Time | Space | Difficulty | Tag | Note |
|---|---|---|---|---|---|---|---|
| 136 | Single Number | Python | O(n^2) | O(n) | Easy | ||
| 389 | Find the Difference | Python | O(1) | O(1) | Easy |
| # | Title | Solution | Time | Space | Difficulty | Tag | Note |
|---|---|---|---|---|---|---|---|
| 190 | Reverse Bits | Python | O(1) | O(1) | Easy | ||
| 231 | Power of Two | Python | O(1) | O(1) | Easy | ||
| 342 | Power of Four | Python | O(1) | O(1) | Easy | ||
| 003 | Longest Substring Without Repeating Characters | Python | O(n) | O(n) | Medium | Sliding window | |
| 159 | Longest Substring with At Most Two Distinct Characters | Python | O(n) | O(n) | Hard | Sliding window | |
| 340 | Longest Substring with At Most K Distinct Characters | Python | O(n) | O(1) | Hard | Sliding window | |
| 395 | Longest Substring with At Least K Repeating Characters | Python | O(n) | O(1) | Hard | Divide and Conquer | |
| 424 | Longest Repeating Character Replacement | Python | O(n) | O(1) | Medium |
| # | Title | Solution | Time | Space | Difficulty | Tag | Note |
|---|
| # | Title | Solution | Time | Space | Difficulty | Tag | Note |
|---|
| # | Title | Solution | Time | Space | Difficulty | Tag | Note |
|---|
| # | Title | Solution | Time | Space | Difficulty | Tag | Note |
|---|
| # | Title | Solution | Time | Space | Difficulty | Tag | Note |
|---|
| # | Title | Solution | Time | Space | Difficulty | Tag | Note |
|---|---|---|---|---|---|---|---|
| 136 | Single Number | Python | O(n) | O(n) | Easy | ||
| 159 | Longest Substring with At Most Two Distinct Characters | Python | O(n) | O(1) | Hard | Sliding window | |
| 340 | Longest Substring with At Most K Distinct Characters | Python | O(n) | O(1) | Hard | Sliding window |
| # | Title | Solution | Time | Space | Difficulty | Tag | Note |
|---|---|---|---|---|---|---|---|
| 136 | Single Number | Python | O(n) | O(n) | Easy | ||
| 137 | Single Number II | Python | O(n) | O(n) | Easy | ||
| 231 | Power of Two | Python | O(1) | O(1) | Easy | ||
| 342 | Power of Four | Python | O(1) | O(1) | Easy | ||
| 389 | Find the Difference | Python | O(1) | O(1) | Easy |
| # | Title | Solution | Time | Space | Difficulty | Tag | Note |
|---|
| # | Title | Solution | Time | Space | Difficulty | Tag | Note |
|---|
| # | Title | Solution | Time | Space | Difficulty | Tag | Note |
|---|---|---|---|---|---|---|---|
| 395 | Longest Substring with At Least K Repeating Characters | Python | O(n) | O(1) | Medium | Divide and Conquer |
| # | Title | Solution | Time | Space | Difficulty | Tag | Note |
|---|
| # | Title | Solution | Time | Space | Difficulty | Tag | Note |
|---|
| # | Title | Solution | Time | Space | Difficulty | Tag | Note |
|---|
| # | Title | Solution | Time | Space | Difficulty | Tag | Note |
|---|
| # | Title | Solution | Time | Space | Difficulty | Tag | Note |
|---|
| # | Title | Solution | Time | Space | Difficulty | Tag | Note |
|---|
| # | Title | Solution | Time | Space | Difficulty | Tag | Note |
|---|
| # | Title | Solution | Time | Space | Difficulty | Tag | Note |
|---|
| # | Title | Solution | Time | Space | Difficulty | Tag | Note |
|---|
| # | Title | Solution | Time | Space | Difficulty | Tag | Note |
|---|