view stacks_lists/pancakes/question.rst @ 2:6bebf4b42ebc

Correctly format the stacks and lists exercices
author Louis Opter <kalessin@kalessin.fr>
date Mon, 01 Jul 2013 23:25:58 -0700
parents
children
line wrap: on
line source

Pancakes Stack
==============

You have a stack of pancakes of different diameters. You can modify the stack
by inserting a spatula between two pancakes and flip over the stack on top of
the spatula.

Sort the stack in increasing order (i.e: the biggest pancake at the bottom).