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.
Nesta página do site você pode assistir ao vídeo on-line Codewars SupermarketQueue duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Dave Kirkwood 05 Junho 2022, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 1,014 vezes e gostou 17 espectadores. Boa visualização!