Binary Search Tree Problems for Coding Round

  Рет қаралды 10,488

Coder Army

Coder Army

Күн бұрын

Пікірлер: 80
@CoderArmy9
@CoderArmy9 9 ай бұрын
Kaisa laga new concept 👊
@BholaKumar-xe4eb
@BholaKumar-xe4eb 9 ай бұрын
basic to hero concept bhai
@seekingsoul871
@seekingsoul871 8 ай бұрын
Bhaiya, aapne timestamp->51:36 pe jo tree tha uska preorder bola tha 1 2 4 , par uska preorder to 2 1 4hoga.
@Vaibhavvashishtha123
@Vaibhavvashishtha123 7 ай бұрын
​@@seekingsoul871haan
@mrattack2330
@mrattack2330 6 ай бұрын
ek number sir
@ankitshrestha6481
@ankitshrestha6481 2 ай бұрын
59:00 Bhaiya aab solution accept ho raha h [gfg]
@mohit6215
@mohit6215 9 ай бұрын
Coding is not just writing programs its about "LEVEL OF UNDERSTANDING"
@malaydewari1078
@malaydewari1078 8 ай бұрын
accha
@fachoyt9686
@fachoyt9686 4 ай бұрын
No paid course explains things so clearly and in such depth. I really like the way you teach.
@ParvezKhan-mj7yt
@ParvezKhan-mj7yt 12 күн бұрын
I solved problem 3 bst and preorder with array. It produced right result.
@GuruDonBharati
@GuruDonBharati 9 ай бұрын
Love you Bhaiya Thankyou For Your hardwork main abhi lecture no. 15 par hu late Start Kiya hu But ab Continue Karunga 🇮🇳🇮🇳🚩🇮🇳💯💯🤞🙏🎊🎊🎊
@VineetDixit
@VineetDixit 3 ай бұрын
bhaiya,sach me legendary explanation aur code h aapka
@Sanataniblood-mb5pu
@Sanataniblood-mb5pu 5 ай бұрын
Best part is roast GFG 😂😂 Another Awesome lecture bhaiya ❤️❤️
@Chandan_agrawal
@Chandan_agrawal 6 ай бұрын
you are awesome teacher .concept ko hamere level par leja kar samajate hai
@ankushladani496
@ankushladani496 9 ай бұрын
Stack wala part was awesome Bhaiya...♥️🚀
@étudianteambitieuse
@étudianteambitieuse 5 ай бұрын
Thankyou bhaiya !! You are best teacher 😊
@Eng_wallah
@Eng_wallah 9 ай бұрын
Bhaiya! You are a great person for teaching
@CoderArmy9
@CoderArmy9 9 ай бұрын
Thanks ❤️
@Noobiee_FPS
@Noobiee_FPS 9 ай бұрын
bhaiya aaj ki lecture mai mzaa aa gya new concept toh interesting tha
@bharatmalik2756
@bharatmalik2756 9 ай бұрын
Bhaiya concept to crystal clear ho gya 🔥
@rahuldurgapal9859
@rahuldurgapal9859 8 ай бұрын
1:00:28 ye bat aapne bilkul sahi boli bhayia 🥲🥲
@allinonemoviesyt
@allinonemoviesyt 9 ай бұрын
ek number😍
@vijaysingh-n6p9j
@vijaysingh-n6p9j Ай бұрын
Good evening Gurudev😁.
@shubhtalk7073
@shubhtalk7073 9 ай бұрын
Bhaiya heap jaldi start kariye 👍 BTW love your videos 😊
@ParvezKhan-mj7yt
@ParvezKhan-mj7yt 12 күн бұрын
Method 3 construct BST from pre order.. Why it doesn't seem like having time complexity of order(n)
@Vardanaggarwal
@Vardanaggarwal 9 ай бұрын
BAAP level concept bhaiya.
@heetpatel3037
@heetpatel3037 6 ай бұрын
Jai shree Ram ❤️ Aapka lakh lakh shukriya
@ankushladani496
@ankushladani496 9 ай бұрын
Done Bhaiya... Day 165/180 ✅
@Aniruddha_Mukherjee
@Aniruddha_Mukherjee 9 ай бұрын
Good morning bhaiya ji😍
@CoderArmy9
@CoderArmy9 9 ай бұрын
Good morning bhai❤️
@Eng_wallah
@Eng_wallah 9 ай бұрын
Radhe radhe bhaiya🙏🏻🙏🏻
@CoderArmy9
@CoderArmy9 9 ай бұрын
Radhe Radhe bhai❤️
@mohit6215
@mohit6215 9 ай бұрын
Bhaiya aaj ekdum bijli wala chamka
@nikhil316_pspk
@nikhil316_pspk 9 ай бұрын
stack aur heap memory ka usage kaise vary karta hai samaj ayaa
@machinecode2.047
@machinecode2.047 9 ай бұрын
Maja ageya Dil garden garden horahahe 😂
@asad_iliyas
@asad_iliyas 8 ай бұрын
H/W= Node *createBST(int pre[], int size,int &index,int lower,int upper) { if(index==size || pre[index]upper) return NULL; Node *temp = newNode(pre[index++]); temp->left = createBST(pre,size,index,lower,temp->data); temp->right = createBST(pre,size,index,temp->data,upper); return temp; } // Function that constructs BST from its preorder traversal. Node* Bst(int pre[], int size) { // code here int index = 0; return createBST(pre,size,index,INT_MIN,INT_MAX); }
@parmanandkumarsingh7636
@parmanandkumarsingh7636 9 ай бұрын
Love you BHAIYA ❤❤
@CoderArmy9
@CoderArmy9 9 ай бұрын
Bhai❤️
@ankushladani496
@ankushladani496 9 ай бұрын
Thanks Bhaiya...❤🎉
@Pallab01
@Pallab01 9 ай бұрын
4: Preorder to PostOrder: class Solution{ public: //Function that constructs BST from its preorder traversal. Node* makeBst(int pre[],int &index,int lower,int upper,int size) { if(index==size||pre[index]>upper||pre[index]left=makeBst(pre,index,lower,root->data,size); // build right side root->right=makeBst(pre,index,root->data,upper,size); return root; } Node* post_order(int pre[], int size) { //code here int index=0; return makeBst(pre,index,INT_MIN,INT_MAX,size); } };
@AMITKUMAR-ds4hp
@AMITKUMAR-ds4hp 9 ай бұрын
Good morning boss ❤❤❤
@CoderArmy9
@CoderArmy9 9 ай бұрын
Good morning bhai❤️
@lucifersamrat6280
@lucifersamrat6280 4 ай бұрын
is nexus is going to be taught on this board bhaiya
@PankajBabu01
@PankajBabu01 9 ай бұрын
Thank you Bhai ❤❤❤
@utkarshrathore2990
@utkarshrathore2990 9 ай бұрын
😇😇
@AakashParvani
@AakashParvani 9 ай бұрын
Good morning bhaiya ❤
@CoderArmy9
@CoderArmy9 9 ай бұрын
Good morning bhai❤️
@arceus9t376
@arceus9t376 9 ай бұрын
Great ❤
@YashSaini007
@YashSaini007 9 ай бұрын
Bhaiya Radhe Radhe 🙏
@CoderArmy9
@CoderArmy9 9 ай бұрын
Radhe Radhe bhai❤️
@AshokKumar-sl9fo
@AshokKumar-sl9fo 2 ай бұрын
Mera segmentation fault nhi aaya
@sabiruddinkhan496
@sabiruddinkhan496 4 күн бұрын
SOLUTION FOR QUESTION NO. 3 USING STACK: class Solution { public: int canRepresentBST(int arr[], int N) { stacklower; stackupper; lower.push(INT_MIN); upper.push(INT_MAX); int index=0; while(indexlower.top() && arr[index]
@binauralbeats-relaxingmusi4336
@binauralbeats-relaxingmusi4336 9 ай бұрын
Dsa notes me page no 35 me. Num=0; Cout
@CoderArmy9
@CoderArmy9 9 ай бұрын
Kunse DSA Notes bhai, humare koi DSA notes nahi hai
@binauralbeats-relaxingmusi4336
@binauralbeats-relaxingmusi4336 9 ай бұрын
@@CoderArmy9 1044 pages wale
@binauralbeats-relaxingmusi4336
@binauralbeats-relaxingmusi4336 9 ай бұрын
kzbin.info/www/bejne/e6rTgaCXmL97j7ssi=ZheOxN_OHmmTMF5p
@binauralbeats-relaxingmusi4336
@binauralbeats-relaxingmusi4336 9 ай бұрын
Ye Wale notes
@gajendrasinghdhaked
@gajendrasinghdhaked 6 ай бұрын
😍
@shubhamtiwari9817
@shubhamtiwari9817 9 ай бұрын
good morning bheji ❤
@CoderArmy9
@CoderArmy9 9 ай бұрын
Good morning bhai❤️
@sejalgoyal5386
@sejalgoyal5386 4 ай бұрын
commendable
@iamalcohishan106
@iamalcohishan106 9 ай бұрын
🎉🎉🎉🎉
@CoderArmy9
@CoderArmy9 9 ай бұрын
❤️
@YASHYADAV-f9i
@YASHYADAV-f9i 2 ай бұрын
bhaiya maja aa gaya
@yadiencollection5073
@yadiencollection5073 9 ай бұрын
Ram Ram bhaiya
@CoderArmy9
@CoderArmy9 9 ай бұрын
Ram Ram bhai❤️
@adarsh_kumar_sharma_8638
@adarsh_kumar_sharma_8638 9 ай бұрын
Bhaiya aaj ekdum chamka bhaya is ka pdf ya notes bhi ho sakta hai to bana do ya code link
@zafrul_islam
@zafrul_islam 9 ай бұрын
✅✅✅✅
@Rahul-cn8bq
@Rahul-cn8bq 5 ай бұрын
sab samjh gaya
@YashSaini007
@YashSaini007 9 ай бұрын
Day 167/180 #180DaysOfCode
@itshirdeshk
@itshirdeshk 9 ай бұрын
Day 167 ✅🔥
@nitinverma1902
@nitinverma1902 9 ай бұрын
Good morning bhaiya, I'm unable to join the discord server again unfortunately by mistake I exit the server. Your discord link is showing expired. Please fix this problem 🙏
@CoderArmy9
@CoderArmy9 9 ай бұрын
Bhai website mein jaao, udhr chat section mein link diya hai, join kar lo
@dayashankarlakhotia4943
@dayashankarlakhotia4943 9 ай бұрын
problem no.3 code. class Solution { static int can RepresentBST(int arr[],int N){ Stackst=new Stack(); int root=Integer.MIN_VALUE; for(int i=0;i
@TotalEasyMath
@TotalEasyMath 9 ай бұрын
jai hind bhiya
@CoderArmy9
@CoderArmy9 9 ай бұрын
❤️
@dayashankarlakhotia4943
@dayashankarlakhotia4943 9 ай бұрын
problem no.4 ka code. static Node buildTree(int[]pre,int[]i,int size,int max){ if(i[0]==size||pre[i[0]]>=max) return null; Node root=new Node(pre[i[0]++]); root.left =buildTree(pre,i,size,root.data); root.right =buildTree(pre,i,size,max); return root; } public static Node post_order(int pre[],int size){ int[]i=new int[1]; return buildTree(pre,i,size,Integer.MAX_VALUE); } Tc=0(n); sc=0(1); 🎉❤
@VineetDixit
@VineetDixit 3 ай бұрын
matlab koi map wap use nhi kiya aur binary tree chamka diya,wahhhhh
@shubhamkumarjha9192
@shubhamkumarjha9192 9 ай бұрын
Good morning bhaiya ji. 💖
@CoderArmy9
@CoderArmy9 9 ай бұрын
Good morning bhai❤️
Top 7 Algorithms for Coding Interviews Explained SIMPLY
21:22
Codebagel
Рет қаралды 460 М.
Andro, ELMAN, TONI, MONA - Зари (Official Music Video)
2:50
RAAVA MUSIC
Рет қаралды 2 МЛН
Wednesday VS Enid: Who is The Best Mommy? #shorts
0:14
Troom Oki Toki
Рет қаралды 50 МЛН
ВЛОГ ДИАНА В ТУРЦИИ
1:31:22
Lady Diana VLOG
Рет қаралды 1,2 МЛН
Arpit Bhayani talks about real engineering for 1 hour straight
1:16:23
AVL Trees & Rotations (Self-Balancing Binary Search Trees)
20:38
Back To Back SWE
Рет қаралды 360 М.
The Dome Paradox: A Loophole in Newton's Laws
22:59
Up and Atom
Рет қаралды 272 М.
Binary search tree - Implementation in C/C++
18:36
mycodeschool
Рет қаралды 1,3 МЛН
Andro, ELMAN, TONI, MONA - Зари (Official Music Video)
2:50
RAAVA MUSIC
Рет қаралды 2 МЛН