Like A Duck@programming.dev to Programmer Humor@programming.dev · 1 year agoif else if else if elseprogramming.devimagemessage-square7fedilinkarrow-up170arrow-down10file-text
arrow-up170arrow-down1imageif else if else if elseprogramming.devLike A Duck@programming.dev to Programmer Humor@programming.dev · 1 year agomessage-square7fedilinkfile-text
minus-squareDeriHunter@lemmy.worldlinkfedilinkarrow-up0·edit-21 year agoNope recursion would be a bigger cable connected to same cable only smaller, connected to the same cable only smaller, etc… If this is how your recursion looks like you have a problem and you need to rethink your recursion step and and stop condition :)
minus-squareMagicShel@programming.devlinkfedilinkarrow-up0·1 year agoI disagree. Recursion is the same thing over and over again until the exit condition. Nothing is getting smaller except the remaining entries.
minus-squareDeriHunter@lemmy.worldlinkfedilinkarrow-up1·1 year agoOf course it does, I suggest you go read about recursion. Here’s a link: https://www.cs.odu.edu/~toida/nerzic/content/recursive_alg/rec_alg.html Good luck
Nope recursion would be a bigger cable connected to same cable only smaller, connected to the same cable only smaller, etc…
If this is how your recursion looks like you have a problem and you need to rethink your recursion step and and stop condition :)
I disagree. Recursion is the same thing over and over again until the exit condition. Nothing is getting smaller except the remaining entries.
Of course it does, I suggest you go read about recursion. Here’s a link: https://www.cs.odu.edu/~toida/nerzic/content/recursive_alg/rec_alg.html
Good luck