Codewars SupermarketQueue

Published: 05 June 2022
on channel: Dave Kirkwood
1,014
17

Supermarket Queue is a kyu6 exercise on Codewars. The aim is to find out how long it will take customers to make their way through self-service checkouts at the supermarket. The time each customer will take is represented as an array and the number of checkouts is also given. The task is a bit tricky.

There is one queue and the customers have to make their way through the checkouts in the order that they are specified in the queue. My way is not the most straightforward, but I think its logically quite simple. It works first time, so I am happy with it.


On this page of the site you can watch the video online Codewars SupermarketQueue with a duration of hours minute second in good quality, which was uploaded by the user Dave Kirkwood 05 June 2022, share the link with friends and acquaintances, this video has already been watched 1,014 times on youtube and it was liked by 17 viewers. Enjoy your viewing!