Skip to content

Create 283. Move Zeroes.md#54

Open
tokuhirat wants to merge 1 commit intomainfrom
283.-Move-Zeroes
Open

Create 283. Move Zeroes.md#54
tokuhirat wants to merge 1 commit intomainfrom
283.-Move-Zeroes

Conversation

@tokuhirat
Copy link
Owner

This Problem
283. Move Zeroes
Next Ploblem
252. Meeting Rooms
言語: Python

def moveZeroes(self, nums: List[int]) -> None:
num_non_zero_items = 0
for i in range(len(nums)):
if nums[i] != 0:
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if nums[i] == 0:
continue
のほうが私は好きです。

Copy link

@ryosuketc ryosuketc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM です

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants