Common Tasks in Data Structures & Algorithms Problems
A reference list of the most common patterns in DS&A problems, including hashmaps, two pointers, DFS/BFS, dynamic programming, and more. Useful for interviews, practice, or competitive programming prep.
How to Build Tree Structures
Explore multiple techniques for converting flat or semi-structured data into trees in Python, including recursive, map-based, and bottom-up builds like Merkle trees.
Inversions Quick Guide: Sorting, Parity, and Why It Matters
Understand what inversion counts are, how to compute them, and why they're crucial in sorting algorithms, permutation parity, and puzzle solvability.
Solving, Not Sorting: When to Use Python’s `sorted()` and When to Drop Down
A timed problem-solver's guide to efficient sorting in Python
When an Easy Problem Isn't
A deceptively simple stack problem, and the mental traps it led me into before the greedy insight finally clicked
Why Heaps Are Often Implemented as Arrays
Heaps are binary trees, so why aren't they stored like one? Discover why arrays are the perfect data structure for implementing heaps — and how heaps work in the first place.