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.
Find the numeric mean of the prime numbers in a matrix.
6786 Solvers
1091 Solvers
Number of 1s in the Binary Representation of a Number
357 Solvers
Put two time series onto the same time basis
174 Solvers
Find the index of the largest value in any vector X=[4,3,4,5,9,12,0,4.....5]
298 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!