Lecture 52: How To Solve Recursion Problem from 4 different Method
Вставка
- Опубліковано 7 вер 2024
- Recursion in c++ | What is Recursion | Recursion Basic
Home work sheet: drive.google.c...
Join Our Whatsapp Channel: whatsapp.com/c...
Day 73/180, #180daysofcode #180 hard
We have made a whole video in c++, How to solve pattern print problem. We explained everything with the help of code.
We are doing 180 days challenge and going to complete the whole course within the duration with quality content on UA-cam. I am on the mission to create a tech revolution in our country and in upcoming future we want to create a tech which will create many jobs in India.
Video will come on Mon-Fri at 6am in the morning
CoderArmy Website (Buy premium feature at 99 Only for 6 months): www.coderarmy.in
Premium Feature includes:
1: Doubt Support
2: Mentorship session
3: Placement Support to Top Students
4: Resume and Linkedin Profile Building
5: Coding contest twice a month
6: Course completion Certificate
7: Home work Discussion
DSA Course for free
C++ Free Course
Rohit Negi DSA Course C++
Coder Army DSA Course c++
Function in C++
Pointers in C++.
Strings
Vector
Introduction to Recursion
connect to me on Instagram: rohit978.page....
Linkedin: rohit978.page....
Telegram: rohit978.page....
Kaisi chal rahi hai aapki preparation...
Sab chamak Raha hai ❤
Bahut Badhiya bhaiya
Badiya bhaiya
Bilkul sahi chal Rahi hai 🔥
Sir leetcode questions karo
Reverse approach my best part bhaiya ❤
Recursive tree is the best part of the video and ......i liked reverse order approach ❤❤❤
Even number from 1 to n:
#include
using namespace std;
void fun(int n)
{
if(n==2)
{
cout
Mera best part toh jin wala tha, just imagining jin stucked in a loop of stairs.
Thanks bhaiya😊
bhiya aaj to maja hi hi a gaya aapne kahani bhi aaj suna diya jin wala😂
Good Luck Bhai
Samjh aa gya
Lec 52 completed
H.W :Table
#include
using namespace std;
void fun(int n,int N)
{
if(n>10)
return;
cout
bhaiya , first time i am learning recursion like this🔥
that story was amazing..started liking coding because of u..Thank You!
Bhaiya aseha toh sab hi acha laga q ki kuch sikhnai ko mila aur sabse best sochne ke baad reverse order mai print karne wala technique acha tha❤ ❤❤
Bhaiya best part jab aapne odd num vaale case ko main mai sambhal liya nhi toh mai usse function mai sambhal Raha tha and muskil ho rha tha thoda ❤❤❤❤❤
There are 2 types of recursion
Head recursion
Tail recursion
Please explore this 2.
Q3.-> Write a Table program using recursion. Take input number n, and print its table.
# include
using namespace std;
void table(int i,int n){
if(i==11){
return;
}
int mul=n*i;
cout
Great video : Table program->
#include
void table(int,int);
int main()
{
int n;
std::coutn;
table(n,1);
return 0;
}
void table(int n,int x){
if(x>10)
return;
std::cout
Last ki recursion story me maza aa gya "Zin ke lag gaye"
or,,
Lacture or ki baat hi agal thi
carry on bhai all Dreams come dream true keep shining ❤
pura lecture hi best hai
sir next level
course leke course ka nhi samaja but apka samaj gaya
54:00
Here is the another way to solve this question
#include
using namespace std;
void Print(int num)
{
if (num == 1)
{
return;
}
Print(num - 1);
if (num % 2 == 0)
{
cout
even problm 2 argument diff method:-
#include
using namespace std;
void print(int num, int n)
{
if (num == n)
{
if (num % 2 == 0)
{
cout
Awesome recursion lecture.
#include
using namespace std;
void print_odd(int n)
{
if ( n == 1)//Base condition
{
cout
HW Solution: from 10 to n.
void print(int n){
if(n
bhaiya mai late se padh raha hu apka dsa course aur abhi recursion ke 2nd video pe aa gaya hu aur bahut maza ata hai bhaya padhne me pura samajh ata hai ( you are great bhaiya for us .) ( you are doing very hard work for us bro ) ( we shall be very thankful for your hard work bhaiya )
start kab kiya?
@@owais2609 so mahina pehle kiye the but Ghar chal Gaye the na chhutti me to piche ho gayev
acha mane bhi abhi start kiya tha kuch 1 mahina phle ma bhi recursion pe hu 🙂🙂@@Himanshu_85-e2i
Q2.🍵🍵-> Print all numbers from 10 to n using recursion, where n will be greater than 10
Ans->
# include
using namespace std;
void print(int n){
if(n==10){
cout
I'll definitely donate if i meet the Jin 😂
Recursion lecture 2 done ✅✅✅
Recursion best playlist
And last mein story was awesome😂😂
best part wo laga jahan par 1 hi argument pass krke hamne same problem ko solve kiya ( jo 2 args pass krke ho raha tha)
Done Bhaiya
Jini be like: Ye coder army se recursion padke aya hain
odd problem ans:-
#include
using namespace std;
void print(int num)
{
if (num == 1)
{
cout
Best recursion series
# include
# include
# include
using namespace std;
void odd(int n){
if(n==1){
cout
Completely Awesome explanation of different types of Recursion .
abhi ham roz aapki vidio dekhte hai
Recursive tree is the best part of the whole recursion
base case ko two ways se lena mera best part h kyuki usse me question ko do tarike se kar sakta hu.
all concept clear and easy
sir recursion jinn wali story badi funny thi love you sir ji
THANK YOU BHAIYA FOR MAKING THE CONCEPTS SO EASY
Awesome lecture bhaiya crystal clear
Last ki story ekdam mst thi😂
Thank u😊
When this will be all over this DSA course.. I am gonna miss it 😂😭
HW Solution for printing all odd numbers.
void printOdd(int n){
if(n
After watching the leacture
1) printing the element at the time of pushing the function in to the stack (5 to 1) => 5,4,3,2,1;
2) printing the element at the time of popping the function from the stack(1 to 5) => 1,2,3,4,5 [5 is enters1st it is completed last, 1 is enters last but it is completing 1st];
reverse method sabse accha lagaa
HW Solution: Table
void print(int i, int n){
if(i>10) return;
cout
maza agya gurudev
Maja aa gaya recursion me❤ and kahani achhi thi😂
recursion jaan bacha skta hai
1:2:30 arre bhaiya apko paisa kyo donate kare aap to pahle se hi aamir hai 😀😀😀😀😀
14:35
1:00:01 best part bhaiya 😂😂
Amazing❤ Series bhaiya
what i solve i will post it from you bhaiya🙏🙏🙏🙏🙏🙏
recurrsion samaj gaya finally
recursion tree.🤩
Done 👍
Tnx for the video bhaiya❣
1:01:30 Ginnn be like : Mujhe fasaya gaya hai 😂
Jin Wala Part sera tha 😂🤣😅
best part of video is "story of jinn ! ";
sir, you did not say why to use recursion instead of loop
awesome lecture
bhaiya budh budh se gyan badha raha hai ,saandar explanation bhaiya
Done
nice explanation
jai hind bhaiya, and love you to
Done
Day 73/180 ✅
Thanks Bhaiya...❤🎉
Done Bhaiya... Day 73/180 ✅
Sab chamak gaya bahiya
Chamka bhaiya chamka
Bhaiya Jin ki story sandar thi 😂
Bhaiya Radhe Radhe 🙏
Good morning bhaiya ji 💖
Jai hind jai bharat.😊
Day 73 👍✅ Chamak Gaya
sir ap to asa kh re ho rsgulla psnd h ya rasmlai
dono pkwan hi mjedar h to kese btaye kya psnd h kya nhi
awesome lecture
Good morning bhaiya ❤
day 73/180 done
Masth tha easy
Good morning 🌄
gin aayega to mai use break condtion samjha dunga taaki fir wo ullu na bane🤣🤣🤣
bhaia leet code questions krwaya kro khub saare please
that Gin be like "Mujhe mere ghar jana hai "
chamak gaya
Chamak gya bhaiya
#include
using namespace std;
void print(int a, int b)
{
if(a == b)
{
cout
day2
Day 73 ✅🔥
Dsa ❤🔥
Day 73/180 👍
👏👏
best part 1:02:35 😂😂
IR07117D
comeback