Pancake sorting https://www.geeksforgeeks.org/pancake-sorting/

Given an an unsorted array, sort the given array. You are allowed to do only following operation on array.

flip(arr, i): Reverse array from 0 to i

results matching ""

    No results matching ""