← Oracle questions
CodingReported in a candidate post, Jul 2025

Josephus problem

Filed under Oracle · Also reported at Amazon, Ameyo, BankBazaar.com, Drishti-Soft Solutions, Expedia, Gainsight, Goldman Sachs, IIM-Jobs and 3 more

n people stand in a circle numbered 1 to n. Starting from person 1, count k people and eliminate the k-th; repeat from the next person until one remains. Return the number of the survivor (Josephus…

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Oracle questions

Collected from public candidate posts and coding forums. Updated Nov 2026.