Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,10 @@
- Maintain a window over an array/string while expanding and shrinking based on constraints.
- Used for longest substring problems, frequency constraints, and streaming aggregates.
- [Technique Details](techniques/SLIDING_WINDOW.md)

### Two Pointers Technique

- Use two pointers to traverse data structures efficiently, eliminating nested loops.
- **Opposite Direction**: Pointers start at opposite ends and converge (e.g., Two Sum, palindrome checking).
- **Same Direction**: Pointers move in parallel at different speeds (e.g., remove duplicates, fast/slow cycle detection).
- [Technique Details](techniques/TWO_POINTERS.md)
Loading