Hacker News new | ask | show | jobs
by jepcommenter 1928 days ago
I guess you can also prefill result[i]=i and then apply fizzbuzz mask to avoid addition altogether
1 comments

Oh, wait, the original code receives input array while above loops from zero to n which is something else.