Welcome to LeetCode Discuss.  Please read the FAQ to help yourself making the best use of Discuss.
Ask a Question
Back to Problem

Welcome to LeetCode Discuss.

This is a place to ask questions related to only OJ problems.

Please read the FAQ to help yourself making the best use of Discuss.

[leetcode-only] [test-case] Don't we need to consider the inputs that have same numbers in the collection?

+2 votes
459 views

It seems the test cases of leetcode does not consider the inputs that have same numbers in the collection? For example, [1,3,3].

asked Dec 15, 2013 in Permutations by wshaoxuan (1,140 points)

1 Answer

+3 votes
 
Best answer

That Permutations 2!

Maybe in Permutations, "collection" should be replaced by "set".

answered Dec 15, 2013 by loick (5,070 points)
selected Dec 15, 2013 by wshaoxuan

I did not notice that there is a "permutations II"


...