Problem 42497. Pancake sorting
25.88% Correct | 74.12% Incorrect
Last Solution submitted on May 26, 2023
David Verrelli on 12 Oct 2017
The flipping sequence does not need to be the most efficient, it just needs to (eventually) have the desired effect.
Solution CommentsShow comments
Problem Recent Solvers34
Create a vector whose elements depend on the previous element
Generate a vector like 1,2,2,3,3,3,4,4,4,4
Decimation - Optimized for speed
More from this Author40
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!