Power Of Two

easy
Given an integer n, return true if it is a power of two. Otherwise, return false.
An integer n is a power of two, if there exists an integer x such that n == 2x.

Input Format

An integer n

Output Format

true or false

Constraints

-2147483648 to 2147483647

Notice

Try First, Check Solution later

1. You should first read the question and watch the question video.
2. Think of a solution approach, then try and submit the question on editor tab.
3. We strongly advise you to watch the solution video for prescribed approach.

Example

Input
4
Output
true
Previous
Check If Given String Is Palindrome Or Not
Next
Intersection Of Two Array

Related Questions