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
- 프로그래머스
- github
- rnn
- datascience
- GitHub Action
- pep8
- NLP
- GCP
- 백준
- PytorchLightning
- 알고리즘
- leetcode
- torchserve
- 네이버AItech
- NaverAItech
- Kaggle
- FDS
- pytorch
- wandb
- DeepLearning
- vscode
- autoencoder
- docker
- FastAPI
- Matplotlib
- python
- Kubernetes
- 코딩테스트
- GIT
- 완전탐색
Archives
- Today
- Total
Sangmun
283. Move Zeroes 본문
https://leetcode.com/problems/move-zeroes/submissions/944108528/
class Solution:
def moveZeroes(self, nums: List[int]) -> None:
l = 0
for r in range(len(nums)):
if nums[r]:
nums[l], nums[r] = nums[r], nums[l]
l += 1
'알고리즘 > 리트코드' 카테고리의 다른 글
459. Repeated Substring Pattern (0) | 2023.08.12 |
---|---|
Palindrome (0) | 2023.04.27 |
516. Longest Palindromic Subsequence (0) | 2023.04.22 |
662. Maximum Width of Binary Tree (0) | 2023.04.20 |
Leet code Validate Stack Sequences (0) | 2023.04.13 |
Comments