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
- pjax
- Permutations
- canvas
- useMemo
- web
- 환경설정
- eslint
- VanillJS
- Custom Hook
- Hook
- seo
- react internals
- React.memo
- 코테
- useEffect
- prettier
- 완전탐색
- BFS
- useCallback
- python
- venv
- await
- 비동기
- react
- webpack
- 코딩테스트
- 프로그래머스
- 그리디
- useState
- VanillaJS
Archives
- Today
- Total
목록Permutations (1)
Amada Coding Club

코테 문제 중에 소수 찾기 문제를 풀던 중 나는 재귀를 사용해서 어찌어찌 풀었지만 # import math # numList = [] # def isPrime(n): # if(n == 2 or n == 3): # return True # if(n == 1 or n % 2 == 0): # return False # for i in range(3, int(math.sqrt(n))+1, 2): # if(n % i == 0): # return False # return True # def getNum(num, index, word): # newNum = word + num[index] # if (int(newNum) not in numList and int(newNum) != 0): # numList.appen..
코딩테스트-Python/문법
2023. 1. 5. 10:51