Anonymous user
Knight's tour: Difference between revisions
Updated D entry
(Updated D entry) |
|||
Line 936:
}
counts[].randomShuffle(); // shuffle to randomly break ties
counts[].sort(); // lexicographic sort
Line 987:
}
}</lang>
{{out}}
<pre>23 16 11 6 21
10 5 22 17 12
|