JAVA_Power of Two_LeetCode 231 풀이 class Solution { public boolean isPowerOfTwo(int n) { if(n<=0) return false; return (n & (n-1)) == 0; } } * 출처 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...
JAVA_Power of Two_LeetCode 231에 대한 요약내용입니다.
자세한 내용은 아래에 원문링크를 확인해주시기 바랍니다.
#JAVA
#JAVA_LeetCode231
#JAVA_PowerofTwo
#JAVA_PowerofTwo_LeetCode231
#PowerofTwo_LeetCode231
원문링크 : JAVA_Power of Two_LeetCode 231