Infinite house of pancakes – Google Codejam 2015 Qualification round problem 2
Here is the link to the original problem. Let us try to simplify the problem statement a little bit. There is a dinner house of infinite number of guests but finite number of pancakes. Each of them hold a plate which is either empty or has some pancakes in them. Every minute, one of the…