← home

Writing / 63 entries

Code, Solutions
& Discovery.

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

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

LeetCode 139: Word Break

A detailed breakdown of the DP string segmentation approach, optimizing for both speed and memory.

10
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.

11
May 11, 2026#leetcode#python

LeetCode 206: Reverse Linked List

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

12
May 11, 2026#leetcode#python

LeetCode 62: Unique Paths

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

13
May 10, 2026#leetcode#python

LeetCode 152: Maximum Product Subarray

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

14
May 9, 2026#leetcode#python

LeetCode 217: Contains Duplicate

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

15
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.

16
May 8, 2026#leetcode#python

LeetCode 207: Course Schedule

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

prev02 / 04next