Skip to content

PermutationsII#30

Open
rossy0213 wants to merge 1 commit intomainfrom
leetcode-permutations-ii
Open

PermutationsII#30
rossy0213 wants to merge 1 commit intomainfrom
leetcode-permutations-ii

Conversation

@rossy0213
Copy link
Copy Markdown
Owner

@rossy0213 rossy0213 commented Jul 29, 2024

// Sort the nums first, if the previous number is same and we already used it the skip
// Time complextity: O(N! * N(new list)) N: number of nums
// Space complextity: O(N!)
// Time spend: 04:28
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

これも色々書き方ありそうです。

https://more-itertools.readthedocs.io/en/stable/_modules/more_itertools/more.html#distinct_permutations
これとか読んでおきますか。

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.

2 participants