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 | 29 | 30 |
Tags
- leetcode 풀기
- python zip_longest
- 파이썬릿코드풀기
- python 릿코드
- 상가수익률계산기
- 파이썬 프로그래머스
- python 알고리즘
- python Leetcode
- 릿코드
- 릿코드 풀기
- python xor
- 알고리즘풀기
- 파이썬 알고리즘 풀기
- 알고리즘풀이
- 파이썬 릿코드
- leetcode풀기
- 잇츠디모
- LeetCode
- binary search
- python priority queue
- 릿코드풀기
- 파이썬 알고리즘
- leetcode풀이
- 릿코드풀이
- 릿코드 파이썬
- 파이썬알고리즘풀기
- 코틀린기초
- 파이썬릿코드
- 파이썬알고리즘
- python sorted
Archives
- Today
- Total
목록python bit operation (1)
소프트웨어에 대한 모든 것

191. Number of 1 Bits https://leetcode.com/problems/number-of-1-bits/ Number of 1 Bits - 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) bin() 함수를 사용해서 이진 문자열로 변환 후 '1'의 수를 셉니다. class Solution: def hammingWeight(self, n: int) -> int: return bin(n).count('1') 솔루션2) 내장 함수를 ..
카테고리 없음
2021. 11. 21. 21:48