Notice
Recent Posts
Recent Comments
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- github
- 파이썬
- programmers
- leetcode
- SW Expert Academy
- 우분투
- 데이콘
- gs25
- 편스토랑 우승상품
- 프로그래머스
- Kaggle
- 캐치카페
- 금융문자분석경진대회
- 코로나19
- 더현대서울 맛집
- hackerrank
- Real or Not? NLP with Disaster Tweets
- 맥북
- PYTHON
- 프로그래머스 파이썬
- dacon
- ChatGPT
- 자연어처리
- Docker
- ubuntu
- AI 경진대회
- Git
- Baekjoon
- 편스토랑
- 백준
Archives
- Today
- Total
목록
반응형
Thousand Separator (1)
반응형
솜씨좋은장씨
[leetCode] 1556. Thousand Separator (Python)
Given an integer n, add a dot (".") as the thousands separator and return it in string format. Example 1: Input: n = 987 Output: "987" Example 2: Input: n = 1234 Output: "1.234" Example 3: Input: n = 123456789 Output: "123.456.789" Example 4: Input: n = 0 Output: "0" Constraints: 0 str: if len(str(n)) < 4: return str(n) else: len_str = len(str(n)) loop_num = len_str // 3 mod_num_list = [] for i ..
Programming/코딩 1일 1문제
2020. 8. 29. 21:44
반응형