minus-squaremercator_rejection@programming.devtoProgramming@programming.dev•when is it best to use a recursive function vs a for looplinkfedilinkarrow-up8·11 months agoAny recursive algorithm can be made iterative and vise versa. It really depends on the algorithm if the function calls are a major factor in performance. linkfedilink
minus-squaremercator_rejection@programming.devtoProgrammer Humor@programming.dev•Null terminatorlinkfedilinkarrow-up43arrow-down2·1 year agoBut with what computer?! linkfedilink
Any recursive algorithm can be made iterative and vise versa. It really depends on the algorithm if the function calls are a major factor in performance.