Ranking methods: Difference between revisions
Content added Content deleted
Line 3,093: | Line 3,093: | ||
=={{header|Nim}}== |
=={{header|Nim}}== |
||
===Using an auxiliary table=== |
|||
To simplify, it’s convenient to build a table giving for each score the list of competitor |
To simplify, it’s convenient to build a table giving for each score the list of competitor names. |
||
<lang Nim>import algorithm, sequtils, stats, tables |
<lang Nim>import algorithm, sequtils, stats, tables |
||
Line 3,227: | Line 3,228: | ||
7.0: Stephen 39</pre> |
7.0: Stephen 39</pre> |
||
===Without an auxiliary table=== |
|||
But it is possible to do the ranking without an auxiliary table. |
|||
<lang Nim>import algorithm |
<lang Nim>import algorithm |
||