Hello,
I've been trying to solve
Problem 120. In a REPL, the following solution works:
(fn [xs]
(count
(filter
(fn [x]
(< x
(reduce + (map
(comp #(* % %) #(Integer/parseInt (str %)))
(seq (str x))))))
xs)))When I try to submit this solution, I always hit a timeout. Is it possible that the last test case is a little over the top?
Cheers,
Jannik