Josephus problem: Difference between revisions

m
→‎{{header|Phix}}: typo, added Vlang to the sliding queue list
No edit summary
m (→‎{{header|Phix}}: typo, added Vlang to the sliding queue list)
Line 2,843:
 
=={{header|Phix}}==
I managed to identify eight algorihmsalgorithms 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] (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
Line 2,890:
 
===sliding queue===
Clojure, Crystal, D (both), Eiffel, Elixir, Erlang, friendly interactive shell, Go, jq, Perl, PowerShell, PureBasic (albeit one at a time), Quackery, Raku, REBOL, Ruby, Scala, Sidef[1], Tcl, Vlang.
Method: all skipped prisoners rejoin the end of the queue which sidles left, executioner stays put until the queue gets too short.
<!--<lang Phix>-->
7,806

edits