问题描述: Given n, how many structurally unique BST's (binary search trees) that store values 1...n? For example,Given n = 3, there are a total of 5 unique BST's. \ / / / \ \ / / \ \ 解决原理1: 遍历+递归 二叉查找树的根节点可以是1~n中的任何一个数i 根为i的二叉树数量=左子树数量*右子树数量 左子树的根节点取值范围为…