# queues advanced

Double Skip

This elimination game gets crueler: round 1 passes once, round 2 passes twice, round 3 three times… then the holder is out. 😈

You get the names (starting at the first). In round r, the item makes r passes, then the holder is eliminated. Print the last kid standing.

Example:

Input: names = ["mia", "leo", "kai", "ana", "bo"] Output: ana

Round 1 passes once then eliminates; round 2 passes twice then eliminates — the number of passes grows each round until only ana survives.

💡 need a hint?

q-double-skip.py🔒 given lines are locked — write your code in between
loading...