zlacker

[parent] [thread] 0 comments
1. rmetzl+(OP)[view] [source] 2019-11-11 06:00:25
There are other HN comments pointing out that the proposed solution still doesn't work correctly because of floating point operations. If the goal is to learn something about programming, yes, I agree with you. But if the goal is to write code with as few bugs as possible then I would take the "create a string and count chars" solution over every solution involving floating point math.
[go to top]