In the Josephus problem, n people stand in a circle numbered 1 to n. Starting from person 1, every second person is eliminated, going around the circle, until one person remains. Return the position…
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.