WordUpWordupPerson

Recursion

usgb/rɪˈkɜːrʒn/Volume
Left Definition 1 of 3Right
LampPro Tip 1/3
Limiting ConditionPlay
Recursion must have an endpoint to prevent infinite loops. SlideThe recursion stops when the function reaches zero.
LampPro Tip 2/3
Programming ErrorsPlay
Misusing recursion can cause stack overflow, crashing the program. SlideHe forgot the base case, and the recursion caused a stack overflow.
LampPro Tip 3/3
Efficiency MattersPlay
Recursion can be less efficient and slower than iteration in some cases. SlideTo improve speed, he replaced recursion with a loop.
Slide

Never forget "Recursion"

Humans forget easily. That's why you should download WordUp: Smart reminders, word games, AI practice, and much more!

App Store IconGoogle Play Store IconMicrosoft Store IconHuawei Store Icon
Left
Right,
Left
Right,
Chrome

WordUp Chrome Extension

As you browse the web instantly look up words you don’t know.

Get Chrome Extension