Do you like puzzles and mathematical problems? Then, get ready to play the Josephus game! It's a game of survival where the winner is the last person standing.

Simplify the Josephus problem with a list approach! Initialize a list of integers from 1 to N, then repeatedly remove the K-th element until only one remains.

If N is even, all even positions get deleted leaving N/2. The solution? josephus(2 * N, 2) = josephus(N, 2) - 1 And for N odd? Find out by clicking here!