일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- 생성형AI
- LeetCode
- GenAI
- nlp
- gcp
- 코드업
- slidingwindow
- 파이썬
- Microsoft
- two-pointer
- 자연어처리
- medium
- 파이썬알고리즘
- codeup
- 투포인터
- heap
- 릿코드
- 알고리즘
- GenerativeAI
- Python
- 구글퀵랩
- SQL
- stratascratch
- 리트코드
- Python3
- 파이썬기초100제
- 슬라이딩윈도우
- sql코테
- dfs
- 니트코드
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