1115 Counting Nodes in a BST(建BST+DFS)
A Binary Search Tree (BST) is recursively defined as a binary tree which has the following properties:
The left subtree of a node contains only nodes with keys less than or equal to the node’s key.
Th...
原创
2019-09-03 17:04:59 ·
98 阅读 ·
0 评论