Codewars SupermarketQueue

Publié le: 05 juin 2022
sur la chaîne: 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.


Sur cette page du site, vous pouvez voir la vidéo en ligne Codewars SupermarketQueue durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Dave Kirkwood 05 juin 2022, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 1,014 fois et il a aimé 17 téléspectateurs. Bon visionnage!