Data Structures & Algorithms
237 notes
Some notes are currently available only in Chinese. English translations are shown when available.
- Entry Node of a Loop in a Linked Listhistorical
Record set-based and fast/slow-pointer methods for finding the entry node of a linked-list cycle.
- Best Time to Buy and Sell Stockhistorical
LeetCode notes on maximizing profit from one stock transaction.
- First Common Node of Two Linked Listshistorical
Record a two-pointer method that uses the length difference to find the first common node of two linked lists.
- Delete Duplicate Nodes in a Linked Listhistorical
Record counting- and set-based methods for deleting all duplicate nodes from a sorted linked list.
- Postorder Traversal Sequence of a Binary Search Treehistorical
Record a recursive method for determining whether a sequence is the postorder traversal result of a binary search tree.
- Unique Binary Search Treeshistorical
LeetCode notes on counting unique binary search trees with DFS, memoization, and dynamic programming.
- Next Node in a Binary Treehistorical
Record methods for finding the inorder successor of a binary-tree node through a full inorder traversal or parent-pointer relationships.
- Binary Tree Inorder Traversalhistorical
LeetCode notes on binary tree inorder traversal with recursion and color marking.