Skip to content

Latest commit

 

History

History
 
 

231_Power_of_Two

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Given an integer, write a function to determine if it is a power of two.

Example 1:

Input: 1
Output: true 

Example 2:

Input: 16
Output: true

Example 3:

Input: 218
Output: false