Skip to content
This repository has been archived by the owner on May 3, 2024. It is now read-only.

Commit

Permalink
leetcode: finished #75
Browse files Browse the repository at this point in the history
  • Loading branch information
xqm32 committed Aug 5, 2023
1 parent dee1aff commit 3ca0ab4
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions content/leetcode/2023/8.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,33 @@ title: "2023.8"
draft: false
---

# 2023.8.5

```python
#
# @lc app=leetcode.cn id=75 lang=python3
#
# [75] 颜色分类
#

# @lc code=start
from typing import List


class Solution:
def sortColors(self, nums: List[int]) -> None:
"""
Do not return anything, modify nums in-place instead.
"""
for i in range(len(nums)):
for j in range(i, len(nums)):
if nums[j] < nums[i]:
nums[i], nums[j] = nums[j], nums[i]


# @lc code=end
```

# 2023.8.4

```python
Expand Down

0 comments on commit 3ca0ab4

Please sign in to comment.