Update: oops, I was studying this puzzle for fun and didn't quite get the rules right. In the original problem, one people are eliminated, they no longer form part of the circle for the purposes of counting...
A fun Python coding challenge based on a classic historical puzzle.
Check out my Algorithmic Thinking with Python Courses on LinkedIn Learning:
/ foundations-of-algorithmic-thinking-with-p...
/ advanced-algorithmic-thinking-with-python
🖥️🖥️🖥️🖥️🖥️🖥️🖥️🖥️
Pastebin with solution and text-to-circle code (not essential for solution):https://pastebin.com/jps12L5S
A great Maths lesson on the Josephus Problem: https://www.ucd.ie/mathstat/t4media/1...
#python #algorithms #compsci #pythonbeginners #learntocode