The Coded One

programming, algorithms, discrete math, open-source

Posts Tagged ‘data structure

Banana stacks

leave a comment »

We should really start calling banana cues banana stacks because when you prepare them, the first one to get pierced is moved to the bottom of the stick, and when you eat them, you eat from the tip to the end of the stick. (Last In First Out)

Either start eating the bananas closest to your hand that’s holding the stick (First In First Out), or stop calling it a queue and call it a stack.

LOL!

Written by Mark Basmayor

July 17, 2008 at 5:15 am

Posted in random thoughts

Tagged with

Follow

Get every new post delivered to your Inbox.