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 | 31 |
Tags
- react
- 프로그래머스
- React #Hooks
- HTML
- Hooks
- Nullish Coalescing Operator
- Python #Baekjoon
- CSS
- React Kakao map
- HTML #CSS
- spread operation
- BOJ
- optional chanining
- css #html
- Python #CodeUp
- 카카오맵
- Template literals
- es11
- Default parameter
- es6
- 카카오맵 api
- nextjs
- Python
- Next
- firebase
- JavaScript
- Redux
Archives
- Today
- Total
목록Algorithm(Python)/programmers(Lv.2) (1)
거북이개발자
[프로그래머스] 124 나라의 숫자
0. 제목 프로그래머스 124 나라의 숫자 1. 문제 https://programmers.co.kr/learn/courses/30/lessons/12899 코딩테스트 연습 - 124 나라의 숫자 programmers.co.kr 2. 풀이 결국 1, 2, 4를 반복해서 올라가는 과정이다. 4, 1, 2를 3진법의 0, 1, 2에 대응한다. 4일경우는 나눈몫에서 -1을 해야한다. 3. 코드 def solution(n): answer = '' while n: n, nam=divmod(n,3) answer="412"[nam]+answer if not nam: n -= 1 return answer
Algorithm(Python)/programmers(Lv.2)
2021. 7. 2. 16:46