Josephus problem: Difference between revisions
Content deleted Content added
Updated to work with Nim 1.4: added missing parameter type and replaced ".. <" by "..<". |
|||
Line 2,630:
{{trans|Python}}
<lang nim>import sequtils, strutils,
proc j(n, k: int): string =
var
p = toSeq(0 ..
i = 0
s = newSeq[int]()
|