algorithm-pattern-reference
Installation
SKILL.md
Algorithm Pattern Reference
Quick reference for common coding patterns and their templates.
Array & String Patterns
Two Pointers
When to use:
- Sorted arrays
- Finding pairs or triplets
- Palindrome checks
- Removing duplicates
- Partitioning arrays
Template (opposite ends):
def two_pointers_opposite(arr):
left, right = 0, len(arr) - 1