Personal practice repo for coding interview prep — primarily LeetCode DSA (Python) and SQL.
.
├── LeetCode/DSA/ # Primary focus — Python solutions by pattern
├── SQL/ # LeetCode SQL + interview problems (TikTok, Google, Spotify, Twitter)
├── HackerRank/ # Secondary practice — algorithms by category
├── KQL/ # Kusto Query Language notebooks
└── Python/ # Codewars, InterviewQuery, misc Python implementations
Solutions organized by algorithmic pattern:
array-hashing/— two pointers, sliding window, hashmap countingstring/— anagrams, palindromes, parsinglinked_list/— fast/slow pointers, reversalstack/— monotonic stack, parenthesestree/— DFS/BFS, recursion patternsgraph/— traversal, topological sort, shortest pathheap/— top-K, priority queuebinary_search/— search space reductionsorting/backtracking/— subsets, combinations, permutationsdynamic_programming/
Each file is self-contained with the Solution class and a test_*() function with LeetCode examples plus edge cases. Run directly with python3 path/to/problem.py.
LeetCode SQL problems (numbered files) and company interview questions (TikTok, Google, Spotify, Twitter, etc.). Topics covered:
- Window functions (
RANK,DENSE_RANK,LAG/LEAD, running aggregates) - Self-joins, anti-joins, correlated subqueries
- Date/time arithmetic, streaks, retention analysis
- Pivots, aggregation, percentile/median logic
- ETL data quality patterns
- Python: 3.x, type hints (
list[int],dict[str, int]), notyping.List - File names:
snake_casematching the problem slug - Commit messages: the problem URL