7 ms·
You won't believe this, but we actually have a soda fridge here that has a deque implementation on the door with a note that cold ones will be at the back. I'l
by jdunck 13y ago
You won't believe this, but we actually have a soda fridge here that has a deque implementation on the door with a note that cold ones will be at the back.
I'll provide a pic if demanded. ;)
- MichaelAza 13y agoThat, I need to see.
- jdunck 13y agoOK, I misremembered, it's a queue, not a deque. Still: http://imgur.com/a/Yujev#0 http://imgur.com/a/Yujev#0 Also kinda random since we don't use much Java here. I do like that people debugged it, though.
- lann 13y agoI've been meaning to cross out the "synchronized" there. It's unnecessary since Queues are already threadsafe.