Tap here to switch tabs
Problem
Submissions

Problem: Unique Binary Search Trees

Unique Binary Search Trees asks for the number of structurally distinct binary search trees that can store unique values from one through n, given exactly n nodes.

Statement

Given an integer n, return the total number of structurally unique binary search trees that can be constructed with exactly n nodes, storing unique values from 11 to n.

Constraints:

  • 1≤1 \leq n ≤19\leq 19

⋮
Tap here to switch tabs
Problem
Submissions

Problem: Unique Binary Search Trees

Unique Binary Search Trees asks for the number of structurally distinct binary search trees that can store unique values from one through n, given exactly n nodes.

Statement

Given an integer n, return the total number of structurally unique binary search trees that can be constructed with exactly n nodes, storing unique values from 11 to n.

Constraints:

  • 1≤1 \leq n ≤19\leq 19