Recursion, FOR/WHILE LOOP with some overhead

preview_player
Показать описание
In this video, we will learn why what Recursion is, why do we usually say "every Recursion solution has a LOOP solution and vice versa" and how to effectively use Recursion interchangeably with LOOP.

Contents

00:31 Recursion is simply a FOR/WHILE LOOP
02:32 Recursion is a FOR/WHILE LOOP with some overhead
03:09 Example 1: find max integer from array
05:59 Example 2: loop through data points in binary tree
08:47 Example 3: process data bottom up
12:06 Use recursion in your algorithm: bottom up or along the way

👍 like & 🔔 subscribe if you find this video useful!

SESV is committed to help anyone to start their career in software engineering by providing short, foundational, interview questions based training videos. If you know someone (no matter what background) who is interested in pursuing a career in software engineering, please spread the word. It may change their lives.

We're always looking to improve our training videos. All constructive comments are welcome.
Рекомендации по теме
Комментарии
Автор

Hey there, glad to meet again with a simple enquiry.
I learned that a recursive stored condition may cause crash of sql application as this kind of procedure will keep calling by itself until a
condition is met?
What is a good practice to handle these procedures?
Thanks a lot.

hasanmougharbel