Binary Tree Node Bounds

Computer Mathematics Medium 2 views
Back to Questions

Problem Description

Given height h (root at height 0), print min and max nodes in a binary tree.

Input Format

One integer h.

Output Format

Two integers min max.

Sample Test Case

Input:
2
Output:
3 7

Constraints

0

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next