96. Unique Binary Search Trees
Description: Given an integer n, return the number of structurally unique BST's (binary search trees) which has exactly n nodes of unique values from 1 to n. ''' [1] recursive) idea:: when n=3, then 1 and 2 and 3 can be root node 1. when 1 is a root node, left-subTree will be None, right-subTree will be made by [2,3] 2. when 2 is a root node, left-subTree will be made by [1], right-subTree will ..
2021.11.08