Recursion in Java

preview_player
Показать описание
In this video we will explain how to trace recursive functions in java. It covers -
1. what is recursion.
2. Different types of recursion - Direct and Indirect.
3. Direct recursion is of 4 types Tail, Head, Tree and Nested Recursion
4. Based upon the recursion type, this video explains what method is to be used to solve questions with examples.

00:42 What is Recursion
03:05 Type of Recursion
05:32 Tail Recursion Questions
09:44 Head Recursion Questions
18:09 Tree Recursion Questions
22:00 Nested Recursion Questions
27:52 Indirect Recursion Questions
Рекомендации по теме
Комментарии
Автор

Outstanding mam, ur teaching style is very precise and clean which makes understanding very simple... Great content and efforts... keep doing it

anilkumarambati
Автор

mam please make a video on how to write different programs using recurssion technique as it seems very hard to make logic with recursioon

AllAnimalkingdom
Автор

Ma'am this is our humble request from our side please do make videos on following problems on recursion(backtracing)
1.Josephus problem
2.N Queen
3.suduku solver
4.subsequence of the string
5.Tower of Hanoi
6.Letter combination of the phone
7.Rope cutting problem
8.subset sum of the array
9.Permutation of the string
10.power of a number
Please ma'am, this is the request of more than 100 of our friends and everyone please 🙏🏻

MOHAMMEDKHALANDER-gc
Автор

Hello mam ....I like your explination ....could u please.provide full java classes ....

maqboolahmad
Автор

Good explanation but it is my humble request to upload vedios on recursion program questions of previous year . Mam plz reply

harshtomar
Автор

Maam please solvee more programs for isc 2023 exma please please humble request

safarasheed
Автор

public class Recursion14
{
static int count = 0;

static void p()
{
count++;

if (count <= 5)
{
System.out.println("Java " + count);
p();
}

System.out.println("count: " + count);
}

public static void main(String[] args)
{
p();
}
}

/*
Output:

Java 1
Java 2
Java 3
Java 4
Java 5
count: 6
count: 6
count: 6
count: 6
count: 6
count: 6
*/


At one particular point 'count' value becomes '6'.
So the if-block condition fails i.e., if(count <= 5).
Then it comes out of the if-block and it prints the s.o.p statement.
While printing the s.o.p statement it prints 'count: 6' for 6 times. why?.

shankarraj
Автор

After this video
My classmates be like:
🙏🙏🙏

a.l.sharma
Автор

How can I find out your paid courses program? Any website or link to know your paid courses curriculum and fee Structure?.. please reply

shashankkhandelwal