← home

Writing / 63 entries

Code, Solutions
& Discovery.

A public digital garden — bugs, breakthroughs, and the chaos of building things on the web.

↳ leetcode
clear↓ newest
alldsa34python29interview26leetcode22algorithms16guide11
09
May 12, 2026#leetcode#python

LeetCode 98: Validate Binary Search Tree

Verify a BST's integrity by ensuring every node respects its upper and lower bounds during an inorder traversal.

10
May 11, 2026#leetcode#python

LeetCode 206: Reverse Linked List

Master both iterative and recursive approaches to reversing a singly linked list.

11
May 11, 2026#leetcode#python

LeetCode 62: Unique Paths

Master grid navigation by building intuition from 2D recursion to optimized 1D Dynamic Programming.

12
May 10, 2026#leetcode#python

LeetCode 152: Maximum Product Subarray

Track both maximum and minimum products to handle negative numbers in this DP problem.

13
May 9, 2026#leetcode#python

LeetCode 217: Contains Duplicate

Efficiently detect duplicates in an array using Hash Sets and Sorting.

14
May 9, 2026#leetcode#python

LeetCode 297: Serialize and Deserialize Binary Tree

Convert a binary tree into a string and back again using Preorder DFS.

15
May 8, 2026#leetcode#python

LeetCode 207: Course Schedule

Detect cycles in directed graphs using DFS and BFS Topological Sort (Kahn's Algorithm).

16
May 7, 2026#leetcode#python

LeetCode 73: Set Matrix Zeroes

Master the O(1) space trick: using the matrix itself as storage to zero out rows and columns.

prev02 / 03next