mercator_rejection@programming.devtoProgramming@programming.dev•when is it best to use a recursive function vs a for loop
8·
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.
Why would they have to go to the CS desk? the cashier can just change it right there. It happens occasionally where they scan too many items and have to void some out, it’s really not a big deal.