PinnedShan DouLeetcode 104: Maximum Depth of Binary TreePost-order depth-first search (DFS)5 min read·Aug 13, 2023----
PinnedShan DouLeetcode 206: Reverse (Singly) Linked ListIterative and recursive solutions explained with analogies5 min read·Aug 12, 2023----
Shan DouLeetcode 408: Valid Word AbbreviationTwo pointers track two strings and check constraints/conditions2 min read·Aug 28, 2023----
Shan DouLeetcode 1570: Dot Product of Two Sparse VectorsHash table for sparse vector representation2 min read·Aug 28, 2023----
Shan DouLeetcode 314: Binary Tree Vertical Order TraversalBread-first search (BFS) with queue; Column index tracking with hash table3 min read·Aug 27, 2023----
Shan DouLeetcode 1762: Buildings with an ocean viewIteration starts from the ocean side and moves inward; monotonic stack2 min read·Aug 27, 2023----
Shan DouLeetcode 98: Validate Binary Search TreeAn In-order traversal DFS implementation for binary search tree (BST)3 min read·Aug 21, 2023----