Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
yes
Not true. It has a nested loop that is just obfuscated by making it a function. This solution still has O(n^2) time complexity. I am baffled that this solution works when my nearly identical solution kept timing out.
You absolute madman
Queues are FIFO (First In First Out) Stacks are LIFO (Last In First Out)
For anybody struggling with this kata, keep in mind that the queue starts at the beginning of customers, not at the end as you may have expected.