Skip to content

39. Combination Sum#30

Open
skypenguins wants to merge 1 commit into
mainfrom
leetcode/arai60/promlem-39
Open

39. Combination Sum#30
skypenguins wants to merge 1 commit into
mainfrom
leetcode/arai60/promlem-39

Conversation

@skypenguins

Copy link
Copy Markdown
Owner

39. Combination Sum

問題: https://leetcode.com/problems/combination-sum/
言語: Python

次回予告: https://leetcode.com/problems/permutations/

Comment thread memo.md
```py
class Solution:
def combinationSum(self, candidates: List[int], target: int) -> List[List[int]]:
candidates.sort()

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

もらった引数を書き換えていますね。どちらが良いかは状況によりますが

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.

確かに使う側からすると想像する挙動と違って驚くかもしれませんね。

@skypenguins skypenguins self-assigned this Jun 9, 2026
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