Nearest Power Of Two

Computer Mathematics Medium 3 views
Back to Questions

Problem Description

Given n>0, print the smallest power of 2 that is >= n.

Input Format

One integer n.

Output Format

One integer.

Sample Test Case

Input:
9
Output:
16

Constraints

1

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next