{Problem Number} -¶
Problem Link¶
Difficulty¶
Easy | Medium | Hard
Topics¶
- Arrays
- Two Pointers
- ...
Problem Summary¶
{One-liner description}
Key Insight¶
{The "aha" moment or trick that makes this problem solvable}
Approaches¶
Approach 1: {Name} (Optimal)¶
Intuition: {Why this works}
Steps: 1. ... 2. ...
Complexity: Time O(...), Space O(...)
Approach 2: {Name} (Brute Force)¶
Complexity: Time O(...), Space O(...)
Edge Cases¶
- Empty input
- Single element
- All same elements
- Negative numbers
- ...
Similar Problems¶
Notes¶
{Any additional learnings, mistakes made, or things to remember}