Click here to Skip to main content
15,559,167 members

Comments by ckbz (Top 1 by date)

ckbz 19-Oct-11 3:13am View    
Guys, please. This is a tail-recursion and it won't be any slower than a loop. Finally it IS a loop after the Jitter does its work.

And even if not, a few function calls doesn't hurt.

Beside the stupid case for n<0, this is the one and only clean solution.