342
-
[LeetCode] 342. Power of FourLeetCode 2021. 10. 29. 00:54
https://leetcode.com/problems/power-of-four/ Power of Four - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com Power of Four - Easy 주어진 정수 n이 4의 거듭제곱 으로 표현될 수 있는지 출력하는 문제다. 문제는 정말 상당히 쉽다. 1이 될때까지 n을 4로 계속 나눠주면 된다. 이 때, 나머지가 생기면 false가 된다. 근데 문제에서 도전 조건으로 준 것 중, loop와 recursive를 사용하지 ..