Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- 릿코드 풀기
- 파이썬릿코드풀기
- 코틀린기초
- LeetCode
- 릿코드 파이썬
- python priority queue
- 릿코드풀이
- 잇츠디모
- 파이썬 릿코드
- python zip_longest
- 파이썬릿코드
- python Leetcode
- 알고리즘풀이
- 릿코드
- python xor
- binary search
- 상가수익률계산기
- 알고리즘풀기
- 릿코드풀기
- leetcode 풀기
- 파이썬알고리즘풀기
- 파이썬 알고리즘
- python sorted
- 파이썬 알고리즘 풀기
- python 알고리즘
- leetcode풀이
- 파이썬 프로그래머스
- leetcode풀기
- python 릿코드
- 파이썬알고리즘
Archives
- Today
- Total
목록python 비트 연산자 (1)
소프트웨어에 대한 모든 것

https://leetcode.com/problems/power-of-two/ Power of Two - 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 문제) 솔루션1) 2의 승수는 A & (A-1) = 0을 만족 예시) 16 -> 10000, 16-1 -> 01111, 16 & 15 -> 10000 & 01111 = 0 class Solution: def isPowerOfTwo(self, n: int) -> bool: if n == 0: return False..
알고리즘/LeetCode
2021. 11. 2. 07:05