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.
[Help] CSES problem set: Josephus Queries (Mathematics Section)
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.