Number of Unique Binary Trees

Given an integer n representing the number of nodes in a binary tree, how many different shapes can be constructed?

Input Description

  • An integer n (1 <= n <= 19)

Output Description

  • An ...

Example

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Standard Input
Execution Result: