일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- LeetCode
- tree
- Microsoft
- 생성형AI
- 릿코드
- Python
- 파이썬알고리즘
- 알고리즘
- Python3
- SQL
- 리트코드
- GenerativeAI
- 코드업
- gcp
- nlp
- heap
- slidingwindow
- 자연어처리
- two-pointer
- 니트코드
- GenAI
- 슬라이딩윈도우
- 투포인터
- 파이썬기초100제
- medium
- dfs
- codeup
- stratascratch
- sql코테
- 파이썬
Archives
- Today
- Total
목록2025/04/06 (1)
Tech for good

1. Sort✅ Approach:Sort the array first to make it easy to remove the minimums.In every round:Alice removes the smallest number (i.e., pop from the front).Bob removes the next smallest number.Bob appends his number first, then Alice.class Solution: def numberGame(self, nums: List[int]) -> List[int]: nums.sort() arr = [] while nums: alice = nums.pop(0) # Alice r..
IT/Computer Science
2025. 4. 6. 22:34