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.
1599 Solvers
895 Solvers
Similar Triangles - find the height of the tree
203 Solvers
Set the array elements whose value is 13 to 0
939 Solvers
169 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!