Jump to content

Josephus problem: Difference between revisions

m
→‎{{header|Phix}}: added RPL to unclassified, since I don't psil kaeps rev swp rev, or whatever.
m (→‎{{header|Phix}}: added RPL to unclassified, since I don't psil kaeps rev swp rev, or whatever.)
Line 2,874:
=={{header|Phix}}==
I managed to identify eight algorithms in use on this page, so I translated all of them. Kill ordering lists omitted for sanity.<br>
Unclassified: Haskell, Python[4 aka learning iter in python], REXX[version 2], RPL (plus Befunge, J, and Mathematica, which I'm happy to ignore)<br>
Note all indexes and results are 1-based. For skipping/linked_list/sliding_queue, prisoners do not have to be numbers, the
same would be true for contractacycle and contractalot with the tiniest of tweaks. For recursive/iterative, prisoners are implicitly numbers, not that it would be difficult to use the result(s) to subscript a list of string names.
7,820

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.