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 |
Tags
- 항해
- 개발자사이드프로젝트
- 파이썬
- 주니어개발자역량강화
- cp949
- 항해99
- 항해플러스
- print sep
- print("""
- 파이썬 sep
- 파이썬 클래스
- 99일지
- 파이썬 map 함수
- 주니어개발자멘토링
- 백준
- 파이썬 |
- Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding
- 파이썬 int()
- 10430번
- 코딩테스트
- MomentumParameters
- EnvCommandError
- vscode cp949
- 99클럽 #99일지 #코딩테스트 #개발자스터디 #항해 #til
- 개발자스터디
- 99클럽
- Til
- not a git repository
- fatal:not a git repository
- 코딩부트캠프후기
Archives
- Today
- Total
선발대
[스파르타] 99클럽 2기 코테스터디 34일차 TIL / leet 1823 본문
Leetcode: 1823. Find the Winner of the Circular Game (링크)
class Solution:
def findTheWinner(self, n: int, k: int) -> int:
q = deque([x + 1 for x in range(n)])
while len(q) > 1:
c = k - 1
while c:
q.append(q.popleft())
c -= 1
q.popleft()
return q[0]
'스파르타코딩클럽 > 활동 내용' 카테고리의 다른 글
[스파르타] 99클럽 2기 코테스터디 36일차 TIL / leet 2390 (0) | 2024.06.24 |
---|---|
[스파르타] 99클럽 2기 코테스터디 35일차 TIL / leet 341 (0) | 2024.06.23 |
[스파르타] 99클럽 2기 코테스터디 33일차 TIL / leet 869 (0) | 2024.06.21 |
[스파르타] 99클럽 2기 코테스터디 32일차 TIL / leet 347 (0) | 2024.06.20 |
[스파르타] 99클럽 2기 코테스터디 31일차 TIL / leet 451 (0) | 2024.06.19 |
Comments