From d27319e533ab17da0918ef1400b2a661a644d55e Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Thu, 24 Jun 2021 15:34:19 +0200 Subject: problem 74 in julia --- julia/062-cubic_permutations.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'julia/062-cubic_permutations.jl') 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 -- cgit