โ† PayPal questions

Solve Josephus Problem using a data structure

Filed under PayPal

Solve the classic Josephus problem for N people standing in a circle and eliminating every k-th person until only one remains, using an explicit circular linked list data structure.

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 PayPal questions

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