Fmars Blog
Inner happiness comes from self-sacrifice
My Blog List
[Leetcode Solution] Permutations II
Analysis
Instead of treating duplicates as different elements, treat them as the same element with different number
Then each element is not at the state of used or not used. Instead, it is how many times can be still used.
Note
Code
No comments:
Post a Comment
Enter you comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment
Enter you comment