11 ms·
I thought it was ruby at first. (1..5).map{|n| n n}.reduce(:) == 24 60 * 60 * 1000
by hughdbrown 9y ago
I thought it was ruby at first.
(1..5).map{|n| n n}.reduce(:) == 24 60 * 60 * 1000
- godd2 9y agoLooks like you need to indent that code (1..5).map{|n| n**n}.reduce(:*) == 24 * 60 * 60 * 1000 Or if we're golfing (1..5).reduce{|t,n|t*n**n}