Hacker News new | ask | show | jobs
by cowsandmilk 193 days ago
How horridly inefficient, he should have just flipped a Boolean on each iteration.
2 comments

Horridly inefficient. Just unfold the loop.
Just output odd and even for each pass and increment by two. Need to make sure you have the right starting value, and check for off-by-one errors.