https://en.wikipedia.org/wiki/Josephus_problem
Install sbt 0.13.x
run 'sbt run number-of-people step-rate'
Both the above arguments should > 0
For example: sbt run 7 2
It returns survivor position (1 based index)
https://en.wikipedia.org/wiki/Josephus_problem
Install sbt 0.13.x
run 'sbt run number-of-people step-rate'
Both the above arguments should > 0
For example: sbt run 7 2
It returns survivor position (1 based index)