Python Coding Challenge: The Josephus Problem

Publié le: 08 juillet 2024
sur la chaîne: Compucademy
338
4

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


Sur cette page du site, vous pouvez voir la vidéo en ligne Python Coding Challenge: The Josephus Problem durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Compucademy 08 juillet 2024, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 338 fois et il a aimé 4 téléspectateurs. Bon visionnage!