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 |
Tags
- 백준
- 프로그래머스 파이썬
- 맥북
- PYTHON
- ChatGPT
- Baekjoon
- Real or Not? NLP with Disaster Tweets
- gs25
- programmers
- 프로그래머스
- 캐치카페
- 파이썬
- leetcode
- dacon
- SW Expert Academy
- Docker
- 편스토랑 우승상품
- 더현대서울 맛집
- Kaggle
- 데이콘
- hackerrank
- github
- AI 경진대회
- 코로나19
- 우분투
- 편스토랑
- 금융문자분석경진대회
- 자연어처리
- ubuntu
- Git
Archives
- Today
- Total
목록
반응형
1492. The kth Factor of n (1)
반응형
솜씨좋은장씨
[leetCode] 1492. The kth Factor of n (Python)
Given two positive integers n and k. A factor of an integer n is defined as an integer i where n % i == 0. Consider a list of all factors of n sorted in ascending order, return the kth factor in this list or return -1 if n has less than k factors. Example 1: Input: n = 12, k = 3 Output: 3 Explanation: Factors list is [1, 2, 3, 4, 6, 12], the 3rd factor is 3. Example 2: Input: n = 7, k = 2 Output..
Programming/코딩 1일 1문제
2020. 10. 3. 00:01
반응형