This is not a valid solution. It does not meet the requirement of elements in each subset being sorted. Try the input [1 3 2] and it does not give sorted subsets.
Vectorize the digits of an Integer
269 Solvers
285 Solvers
Number of digits in an integer
336 Solvers
641 Solvers
273 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!