jackpot@lemmy.ml to Programming@programming.dev · 1 year agowhen is it best to use a recursive function vs a for loopmessage-squaremessage-square50fedilinkarrow-up134arrow-down13
arrow-up131arrow-down1message-squarewhen is it best to use a recursive function vs a for loopjackpot@lemmy.ml to Programming@programming.dev · 1 year agomessage-square50fedilink
minus-squarespader312@lemmy.worldlinkfedilinkarrow-up1·1 year agoJust adding on that recursion could be problematic if used in the wrong way, like too many calls can over flow the call stack (assuming the compiler is not able to optimize that away).
Just adding on that recursion could be problematic if used in the wrong way, like too many calls can over flow the call stack (assuming the compiler is not able to optimize that away).