You must log in or register to comment.
until your stack runs out of memory
I had this problem only once. Luckily, I do not need recursion. I know my way using iterative process.
You forgot
i++
I actually use
repeat(iterations,index_name(optionall),);
. No need for i++ or ++i for loop in many cases.😶
Yeah. repeat() is unique to a few language. I think just Scala, and G’MIC has it. I use the second one. It’s more convenient than say
for(p=0,p<5,++p,);
. Sometimes,repeat(5,);
suffice.
He’s not making the function call past n-1