Back to Brain Tonic
AlgorithmshardBT-009

#9 Josephus — Last Standing

There are 2049 swordsmen sitting in a circle, numbered from 1 to 2049 clockwise. Their minds have been reprogrammed and they start killing the next person alive clockwise, starting from swordsman number 1.

Who is the last standing swordsman?

Answer options
© 2026 FrontendX. All rights reserved.