Skip to content

add memo.md#31

Open
skypenguins wants to merge 1 commit into
mainfrom
leetcode/arai60/problem-46
Open

add memo.md#31
skypenguins wants to merge 1 commit into
mainfrom
leetcode/arai60/problem-46

Conversation

@skypenguins

Copy link
Copy Markdown
Owner

46. Permutations

次回予告: 49. Group Anagrams

@skypenguins skypenguins self-assigned this Jun 13, 2026
Comment thread memo.md
while stack:
nums, path = stack.pop()
if not nums:
result.append(path)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

continueを加えた方が良いと思いました

Comment thread memo.md
stack = [(nums, [])]

while stack:
nums, path = stack.pop()

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

ここで nums を使うと再代入になるので remaining など他の変数名にした方が良いと思いました

Copy link
Copy Markdown
Owner Author

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants