Please read the new rule regarding the restriction on the use of AI tools. ×

[Help] CSES problem set: Josephus Queries (Mathematics Section)

Revision en1, by prcsamrat, 2023-10-09 22:47:44

Hello, I am trying to solve the Josephus Queries (Mathematics section) problem, and I am not able to code the logic that is iterative and not recursive.

Looking forward to help.

Thanks in advance.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en3 English prcsamrat 2023-10-09 22:49:46 0 (published)
en2 English prcsamrat 2023-10-09 22:48:49 110 (saved to drafts)
en1 English prcsamrat 2023-10-09 22:47:44 308 Initial revision (published)