最新 最热

PAT (Advanced Level) Practice 1147 Heaps (30 分)

In computer science, a heap is a specialized tree-based data structure that satisfies the heap property: if P is a parent node of C, then the key (the value) of...

2020-09-28
1

Tree - 144. Binary Tree Preorder Traversal

Given a binary tree, return the preorder traversal of its nodes' values.

2020-09-23
1

Tree - 94. Binary Tree Inorder Traversal

Given a binary tree, return the inorder traversal of its nodes' values.

2020-09-23
1

Tree - 113. Path Sum II

Given a binary tree and a sum, find all root-to-leaf paths where each path's sum equals the given sum.

2020-09-23
1

Tree - 107. Binary Tree Level Order Traversal II

107. Binary Tree Level Order Traversal II

2020-09-23
1

Tree - 103. Binary Tree Zigzag Level Order Traversal

103. Binary Tree Zigzag Level Order Traversal

2020-09-23
1

Tree - 101. Symmetric Tree

Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).

2020-09-23
1

Tree - 226. Invert Binary Tree

226. Invert Binary TreeInvert a binary tree.Example:Input: 4 / 2 7 / / 1 3 6 9Output: 4 / 7 2 / / 9 ...

2020-09-23
1

Tree - 257. Binary Tree Paths

Given a binary tree, return all root-to-leaf paths.

2020-09-23
1

Tree - 112. Path Sum

Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given sum.

2020-09-23
1