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.
Auf dieser Seite können Sie das Online-Video Codewars SupermarketQueue mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Dave Kirkwood 05 Juni 2022 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 1,014 Mal angesehen und es wurde von 17 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!