Data Structures & Algorithms
237 notes
Some notes are currently available only in Chinese. English translations are shown when available.
- Reconstruct Binary Treehistorical
Record the recursive method for reconstructing a binary tree from preorder and inorder traversal results.
- Paths in a Binary Tree With a Given Sumhistorical
Record the depth-first, preorder traversal, and backtracking method for finding binary-tree paths with a given sum.
- Sum Root to Leaf Numbershistorical
LeetCode notes on summing all numbers formed by root-to-leaf paths.
- Serialize a Binary Treehistorical
Record methods for serializing and deserializing a binary tree using preorder traversal and a preorder-plus-inorder traversal combination.
- Convert a String to an Integerhistorical
Record character parsing and atoi implementations for converting a string to an integer.
- Reverse Word Orderhistorical
Record methods for reversing word order by splitting the string and by reversing twice.