Order by pair comparisons: Difference between revisions
m
→{{header|Julia}}: comment
Thundergnat (talk | contribs) (→{{header|Julia}}: "Sorted" order doesn't match spec.) |
Thundergnat (talk | contribs) m (→{{header|Julia}}: comment) |
||
Line 128:
=={{header|Julia}}==
{{improve|Julia|Final "sorted" order seems suspect, though it may be due to questionable answers.
EG.<nowiki>>Is orange greater than red? (Y/N) => n<</nowiki> seems like it should be y }}
<lang julia>const nrequests = [0]
const ordering = Dict("violet" => 7, "red" => 1, "green" => 4, "indigo" => 6, "blue" => 5,
|