일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- Python
- Regular Expression
- Python Implementation
- shiba
- Generator
- 운영체제
- Decorator
- 시바견
- 프로그래머스
- 컴퓨터의 구조
- 109. Convert Sorted List to Binary Search Tree
- 30. Substring with Concatenation of All Words
- DWG
- Substring with Concatenation of All Words
- 밴픽
- 315. Count of Smaller Numbers After Self
- 43. Multiply Strings
- Protocol
- LeetCode
- data science
- iterator
- t1
- Python Code
- 715. Range Module
- kaggle
- attribute
- concurrency
- Class
- Convert Sorted List to Binary Search Tree
- 파이썬
Archives
- Today
- Total
목록Move Zeroes (1)
Scribbling
LeetCode: 283. Move Zeroes
Using two pointers. class Solution: def moveZeroes(self, nums: List[int]) -> None: """ Do not return anything, modify nums in-place instead. """ j = 0 for i, num in enumerate(nums): if num != 0: nums[j] = num j += 1 for k in range(j, len(nums)): nums[k] = 0
Computer Science/Coding Test
2021. 12. 25. 22:14