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.
It dseon't mettar waht oedrr the lrettes in a wrod are.
654 Solvers
Project Euler: Problem 3, Largest prime factor
381 Solvers
573 Solvers
Create an n-by-n null matrix and fill with ones certain positions
270 Solvers
58 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!