Notice
Recent Posts
Recent Comments
Link
250x250
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- 개발
- cos pro 1급
- DFS
- 코드품앗이
- 안드로이드
- 코테
- vuejs
- 파이썬
- AndroidStudio
- Flutter
- BAEKJOON
- DART
- 안드로이드스튜디오
- codingtest
- cos pro
- 알고리즘
- Vue
- 백준
- django
- C++
- 코딩테스트
- DFS와BFS
- Python
- 동적계획법
- 동적계획법과최단거리역추적
- cos
- issue
- android
- Algorithm
- 분할정복
Archives
- Today
- Total
목록cos 1급 5차 4번 python (1)
Development Artist
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/diuVW6/btruIUbxhHu/k34iFS6piKLZcNe9mb2VcK/img.png)
문제 유형 한줄 수정(디버깅) 난이도 easy Note 1. 문제 자체는 쉬웠다. 2. 하지만, 함수 구현 문제로 나올 수 있으니, 해당 로직은 알 필요가 있다. 3. while문 : 숫자를 자릿 수를 쪼개가면서 10으로 나눈 나머지 (0~9)를 number_count의 인덱스에 1씩 더해감. 흡사 collections 모듈의 Counter. 숫자라서 인덱스로 가능. 문자라면, Counter 적극 활용. 4. for문 : 출력. Code # -*- coding: utf-8 -*- # UTF-8 encoding when using korean def solution(number): answer = '' number_count = [0 for _ in range(10)] while number > 0: nu..
Algorithm/COS
2022. 2. 28. 16:55