Check Power Of Two

Computer Mathematics Medium 2 views
Back to Questions

Problem Description

Given n, print YES if it is a power of 2.

Input Format

One integer n.

Output Format

YES or NO.

Sample Test Case

Input:
16
Output:
YES

Constraints

|n|

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next