Writing / 63 entries
A public digital garden — bugs, breakthroughs, and the chaos of building things on the web.
Solving the subtree matching problem with a clever serialization trick that beats 93% of submissions.
Understanding Binary Search from one of the book that I think is good for students
Mastering the LIS problem with Dynamic Programming and Binary Search optimization.
Learn how to reverse an array efficiently using brute force and optimal approaches in Python and JavaScript.
Learn how to efficiently find the smallest and largest elements in an array using simple and optimal techniques in Python and JavaScript.
Learn how to rotate an array efficiently using the reverse approach in Python and JavaScript with step-by-step explanation.
Solve the classic Two Sum problem using brute-force and optimized hashing techniques, a must-know algorithm for coding interviews.
Learn how to efficiently find the longest substring with unique characters using sliding window and hashmap in Python and JavaScript.