1025. Divisor Game https://leetcode.com/problems/divisor-game/ Divisor Game - 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 문제를 푸는데 전혀 감이 오지 않아서 고민하다가 바로 Discussion으로 넘어갔다. class Solution: def divisorGame(self, n: int) -> bool: return n % 2 == 0 1. Top-Down 방식 1) n이 짝수일 때 Alice가 ..
338. Counting Bits https://leetcode.com/problems/counting-bits/ Counting 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 # 나의 코드 class Solution: def countBits(self, n: int) -> List[int]: answer = [] for i in range(n+1): answer.append(bin(i)[2:].count('1')) return answer # Ti..
- Total
- Today
- Yesterday
- 내장 함수
- 열혈 자료구조
- 파이썬
- 코딩테스트
- dijkstra algorithm
- 파이썬 몫
- 동적 계획법
- Python
- dp
- sizeof
- dynamic programming
- 이코테
- C
- 해시
- 프로그래머스
- 비트
- 자료구조
- 비트연산자
- 기본 자료형
- 다익스트라 알고리즘
- leetcode
- 이것이코딩테스트다
- C언어
- 파이썬 나머지
- unsigned
- scanf
- 에러
- ascii
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |