Power of Two - LeetCode
class Solution { func isPowerOfTwo(_ n: Int) -> Bool { var temp = 1 while (temp < n) { temp *= 2 } return temp == n //n์ ๊น์ง temp์ 2๋ฅผ ๊ณฑํ๊ณ true ํน์ false ๋ฐํ } }