Data Structures & Algorithms
237 notes
Some notes are currently available only in Chinese. English translations are shown when available.
- Reverse Linked Listhistorical
Record stack-based and three-pointer implementations for reversing a singly linked list.
- Min Stackhistorical
LeetCode notes on implementing a stack that retrieves the minimum element in constant time.
- Merge Two Sorted Linked Listshistorical
Record iterative and recursive implementations for merging two sorted linked lists.
- K-th Node from the End of a Linked Listhistorical
Record array, length-conversion, and fast-slow-pointer methods for finding the k-th node from the end.
- Median of Two Sorted Arrayshistorical
LeetCode notes on finding the median of two sorted arrays by merging them.
- Copy Complex Linked Listhistorical
Record the method of copying a complex linked list by inserting copied nodes after the original nodes.
- Shortest Unsorted Continuous Subarrayhistorical
LeetCode notes on finding the shortest continuous subarray that must be sorted.