Closed yvern closed 5 years ago
Hello! Thank you for your contribution to polyglot-euler.
polyglot-euler
names: read the file, split into names, and sort it
names
score: get a idx and a name, get the score according to the rules and multiply by idx
score
then iterate over names, gathering each name and it's index
on my computer
real 0m0.455s user 0m0.401s sys 0m0.034s
Hello! Thank you for your contribution to
polyglot-euler
.How the solution works
names
: read the file, split into names, and sort itscore
: get a idx and a name, get the score according to the rules and multiply by idxthen iterate over
names
, gathering each name and it's indexPerformance
on my computer