Has anyone tried solving Josephus problem with python?! I'll be thankful if anyone could help me! | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Has anyone tried solving Josephus problem with python?! I'll be thankful if anyone could help me!

check these for more info. https://en.m.wikipedia.org/wiki/Josephus_problem https://en.m.wikipedia.org/wiki/Josephus_problem#Solution

22nd Dec 2017, 10:01 PM
Ali
Ali - avatar
4 Answers
+ 10
search code playground for many examples
22nd Dec 2017, 10:09 PM
jay
jay - avatar
+ 8
Yep, searching for "Josephus" and filtering by "py" brings up several codes worth recommendation.
22nd Dec 2017, 10:11 PM
Kuba Siekierzyński
Kuba Siekierzyński - avatar
26th Feb 2018, 1:33 AM
SQrL
SQrL - avatar
22nd Feb 2018, 2:18 PM
tamaslud
tamaslud - avatar