HTMLify

Q231_Power_of_two.py
Views: 156 | Author: djdj
def isPowerOfTwo(self, n):
  for i in range(0,31):
    if n == 2**i:
      return 1
  return 0

Comments