Skip to content
Advertisement

Tag: josephus

“Josephus-p‌r‌o‌b‌l‌e‌m” using list in python

I wanted to know if it will be possible to solve the Josepheus problem using list in python. In simple terms Josephus problem is all about finding a position in a circular arrangement which would be safe if executions were handled out using a skip parameter which is known beforehand. For eg : given a circular arrangement such as [1,2,3,4,5,6,7]

Advertisement