Writing / 63 entries
A public digital garden — bugs, breakthroughs, and the chaos of building things on the web.
Master the O(1) space trick: using the matrix itself as storage to zero out rows and columns.
Solving the subtree matching problem with a clever serialization trick that beats 93% of submissions.
Mastering the LIS problem with Dynamic Programming and Binary Search optimization.
Mastering graph traversal by thinking backwards: How to find cells that flow to both oceans using BFS.
Master the art of merging multiple sorted linked lists using Min-Heaps and Divide & Conquer strategies.
Master the Monotonic Deque approach to efficiently track the maximum value in a sliding window.
Master the art of merging intervals with a clean, three-phase linear approach.
From Basic Indexing to Advanced Patterns—Master the Most Elegant Feature of Python