LeetCode 刷題記錄 95. Unique Binary Search Trees II

題目: Given an integer n, generate all structurally unique BST’s (binary search trees) that store values 1 … n.java Example:node Input: 3 Output: [ [1,null,3,2], [3,2,null,1], [3,1,null,null,2], [2,1,3]
相關文章
相關標籤/搜索