
27 Mar
2009
27 Mar
'09
9:17 a.m.
thing n = n + fromIntegral (round (sqrt n))
thing n = n + round (sqrt (fromIntegral n))
Pop quiz for beginners: both of these solve the original problem, but they are not quite the same. What is the difference? (Do not answer this question if you are not a beginner!) -Brent