Data Structures & Algorithms
237 notes
Some notes are currently available only in Chinese. English translations are shown when available.
- Stack with a min Functionhistorical
Record using an auxiliary minimum stack to retrieve the stack minimum in O(1) time.
- Stack Push and Pop Sequenceshistorical
Record methods that use an auxiliary stack to determine whether a given sequence is a valid pop sequence.
- Implement a Queue with Two Stackshistorical
Record how to implement queue Push, Pop, Peek, and Empty operations using two stacks.
- Search in a 2D Arrayhistorical
Mirror translation of the original Sword Offer note: Search in a 2D Array.
- Serialize and Deserialize Binary Treehistorical
LeetCode notes on Serialize and Deserialize Binary Tree.
- Two Numbers with Sum Shistorical
Mirror translation of the original Sword Offer note: Two Numbers with Sum S.
- Binary Tree Zigzag Level Order Traversalhistorical
LeetCode notes on Binary Tree Zigzag Level Order Traversal.