Interview Bootcamp
Ask Author
Back to course home

0% completed

Vote For New Content
For example 2, when we sort the input, the results produced are not exactly the ...

Gary

Apr 7, 2022

For example 2, when we sort the input, the results produced are not exactly the same as the output in Example 2 section (under Problem Statement).

For instance, solution code has results like [1, 3, 5] instead of [1, 5, 3]. Are they actually equivalent?

2

0

Comments
Comments
Design Gurus
Design Gurus4 years ago

Yes, they are equivalent. The problem is only asking to find the distinct subsets.