C Program for Pancake sorting
Given 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 C /* C program for Pancake Sorting */ #include <stdio.h> #include <stdlib.h> /* Reverses arr[0..i] */ void flip(int arr[], int i) { int temp, st