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.
4628 Solvers
1409 Solvers
Create a cell array out of a struct
527 Solvers
Project Euler: Problem 1, Multiples of 3 and 5
1525 Solvers
Edges of a n-dimensional Hypercube
66 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!