Codewars SupermarketQueue

Опубликовано: 05 Июнь 2022
на канале: 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.


На этой странице сайта вы можете посмотреть видео онлайн Codewars SupermarketQueue длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Dave Kirkwood 05 Июнь 2022, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 1,014 раз и оно понравилось 17 зрителям. Приятного просмотра!