Skip to content

Conversation

@potrue
Copy link
Owner

@potrue potrue commented Aug 17, 2025

min_length = min(min_length, end - start + 1);
sum -= nums[start];
++start;
}

Choose a reason for hiding this comment

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

冒頭に書かれたコードより、こちらの while 文の方が読みやすく感じました。

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.

よいと思います。

Copy link

@Fuminiton Fuminiton left a comment

Choose a reason for hiding this comment

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

いいと思います

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.

5 participants