Re:Fizzbuzz, Interviews, And Overthinking
by just2n on Thursday October 04, 2012 @06:46PM
(#4614815)
I agree. Same thing in JS. Also, this is precisely what I thought to do when he started asking about 7 and 11.
Excuse the terseness, I didn't want to make this post too lengthy, but it's still quite readable, IMO. Array.reduce was designed to solve problems like this.
[ Parent
| on HN ]
There are no comments on this comment yet.