diff options
| author | Charles Cabergs <me@cacharle.xyz> | 2021-06-24 15:34:19 +0200 |
|---|---|---|
| committer | Charles Cabergs <me@cacharle.xyz> | 2021-06-24 15:34:19 +0200 |
| commit | d27319e533ab17da0918ef1400b2a661a644d55e (patch) | |
| tree | a95e060efc2139e0658333a4a362fe6ab401b9b2 /julia/062-cubic_permutations.jl | |
| parent | d8d3fff46bd06d8638abf06e1716fc4a1dc6c2a6 (diff) | |
| download | project_euler-d27319e533ab17da0918ef1400b2a661a644d55e.tar.gz project_euler-d27319e533ab17da0918ef1400b2a661a644d55e.tar.bz2 project_euler-d27319e533ab17da0918ef1400b2a661a644d55e.zip | |
problem 74 in julia
Diffstat (limited to 'julia/062-cubic_permutations.jl')
| -rw-r--r-- | julia/062-cubic_permutations.jl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/julia/062-cubic_permutations.jl b/julia/062-cubic_permutations.jl index 08c07fc..84cb413 100644 --- a/julia/062-cubic_permutations.jl +++ b/julia/062-cubic_permutations.jl @@ -17,7 +17,7 @@ const PERMUTATIONS_COUNT = 5 for n in countfrom(2) cube = n ^ 3 - key = sort(collect(string(cube))) + key = sort(digits(cube)) if !haskey(cache, key) cache[key] = [cube] else |
