aboutsummaryrefslogtreecommitdiff
path: root/julia/062-cubic_permutations.jl
diff options
context:
space:
mode:
authorCharles Cabergs <me@cacharle.xyz>2021-06-24 15:34:19 +0200
committerCharles Cabergs <me@cacharle.xyz>2021-06-24 15:34:19 +0200
commitd27319e533ab17da0918ef1400b2a661a644d55e (patch)
treea95e060efc2139e0658333a4a362fe6ab401b9b2 /julia/062-cubic_permutations.jl
parentd8d3fff46bd06d8638abf06e1716fc4a1dc6c2a6 (diff)
downloadproject_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.jl2
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