Bert Huang

一位兴趣广泛的前端程序员

  • Index
  • Code
  • LeetCode
  • Essay
  • About

total viewers:

Last Commit: 2024-01-06 17:50:27

views:

Table of Content

  • question
  • 初想法
  • 总结

96. Unique Binary Search Trees

source: https://leetcode.com/problems/unique-binary-search-trees/

Question

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.

初想法

pub fn num_trees(n: i32) -> i32 {

}

总结

Facebook Comments Service is unavailable