Save the Prisoner Hackerrank problem solution coderinme

Опубликовано: 04 Август 2017
на канале: Coder In Me
2,716
16

A very popular competitive coding challenge in which we have to save the prisoner. Not in real guys, just for this challenge.So here we are A jailer want to distribute some(e.g 5 ) sweets to number of prisoners (6). All the prisoners have id from 1 to n and are sitting in a circular way, sweet can be distributed from anywhere (from the 2nd prisoner). But Last sweet is poisonous we have to warn that prisoner who will eat last sweet.


Смотрите видео Save the Prisoner Hackerrank problem solution coderinme онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Coder In Me 04 Август 2017, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 2,716 раз и оно понравилось 16 людям.