JosephusChallenge | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

JosephusChallenge

This is one of my favourite programming problems: you have an n number of men in a circle every -th man will be executed until only one is alive find where(in which position ) you should stand in order to live.. you can do this in any language,if my description was not clear enough you can look it up yourself(Josephus problem)

15th Nov 2016, 1:04 AM
Remmiq Sliv
Remmiq Sliv - avatar
1 Answer
+ 2
*sigh*, binary is beautiful.
15th Nov 2016, 1:23 AM
Keto Z
Keto Z - avatar