Given a number (n bit long), what is the complexity of finding if the number is a power of 2
Answers
Answered by
2
Answer:
Input : n = 4
Output : Yes
22 = 4
Input : n = 7
Output : No
Input : n = 32
Output : Yes
25 = 32
Mark it brainlist answer
Similar questions