Simple implementation of a counting out problem - See Josephus problem.
sbt "run n k"
where the n
is number of people in the circle, k
is the step rate.
Simple implementation of a counting out problem - See Josephus problem.
sbt "run n k"
where the n
is number of people in the circle, k
is the step rate.