Index finite lists of positive integers: Difference between revisions
Content added Content deleted
(→{{header|Perl 6}}: adding extra credit) |
m (→{{header|Go}}) |
||
Line 56: | Line 56: | ||
// Join base 10 representations with an "a" and you get a base 11 number. |
// Join base 10 representations with an "a" and you get a base 11 number. |
||
// Unfortunately base 11 is a little awkward, so just treat it as base 16. |
// Unfortunately base 11 is a little awkward with big.Int, so just treat it as base 16. |
||
func rank(l []big.Int) *big.Int { |
func rank(l []big.Int) *big.Int { |
||
s := make([]string, len(l)) |
s := make([]string, len(l)) |