Thread replies: 14
Thread images: 2
Anonymous
2015-11-09 23:51:57 Post No. 51270550
[Report]
Image search:
[Google]
Anonymous
2015-11-09 23:51:57
Post No. 51270550
[Report]
SpongeBob has just finished making n Krabby patties. Whenever a Krabby patty is finished he just throws it into the pile regardless of it's size. However, Mr Krab just gave an order saying that patties should be brought to the customers in descending order !
The patties are too hot for SpongeBob's hands to touch so the way he sorts them is by putting his spatula somewhere in the pile , thus diving it to two smaller piles , and flips the upper pile upside down.
What would be the most efficient way to sort n patties and what would be the efficiency?