Bug Report for https://neetcode.io/problems/subsets-ii
Please describe the bug below and include any steps to reproduce the bug or screenshots if possible.
Am I crazy or is the expected output here wrong?
Input:
nums=[1,2,1]
Your Output:
[[1,2,1],[1,2],[2],[2,1],[1,1],[1],[]]
Expected output:
[[1,1,2],[1,1],[1,2],[1],[2],[]]
Bug Report for https://neetcode.io/problems/subsets-ii
Please describe the bug below and include any steps to reproduce the bug or screenshots if possible.
Am I crazy or is the expected output here wrong?
Input:
nums=[1,2,1]
Your Output:
[[1,2,1],[1,2],[2],[2,1],[1,1],[1],[]]
Expected output:
[[1,1,2],[1,1],[1,2],[1],[2],[]]