diff options
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 |
