In this video we will learn how to solve the pancakes problem where we have to sort the different sized pancakes using only the following two operations:
1) Flipping select pancakes
2) Flipping the entire stack
Note: The algorithm that we use to solve the pancakes problem is actually a sorting algorithm, a version of the famous selection sort algorithm. However, selection sort is a slow algorithm, so the code will take time for bigger sets of numbers.
This is the link for Bill Gates research paper:
https://www.sciencedirect.com/science...
#pancakesSort #BillGatesResearchPaper