Nice content thanks Bhaiya for uploading video more frequently
@AdilKhan-we3wb2 жыл бұрын
Thanks bhaiya... I was actually thinking and trying the code with iterative approach for the last 2 days.I have somewhat reached but still i was not able to complete the code. But now it is crystal clear.. The gem for iterative approach is the current and parent pointer ( i was coding in C ) .. Thanks a lot .
@pallavigavali26712 жыл бұрын
Thank you bhaiya ❤️
@tech_wizard93152 жыл бұрын
Please make a 60 roadmap on important DSA topics for DSA beginner to crack tech giant's like Microsoft Amazon level companies
@arpanmaheshwari22902 жыл бұрын
Love you bhaiya first
@er.skelafahmed2 жыл бұрын
Thanks bhaiya...for your uploading speed. ❤️
@vivekshokeen11922 жыл бұрын
Bhaiya can you upload video on springboot briefly describing from interview perspective.Thanks for the amazing videos.love❤
@aishwaryshukla88802 жыл бұрын
Use this iterative code to pass all testcases of GFG: Node insert(Node root, int Key) { // your code here //Recursive method is commented out, iterative method is uncommented currently // if (root == null){ // return new Node(Key); // } // if (root.data > Key){ // root.left = insert(root.left, Key); // }else if (root.data < Key){ // root.right = insert(root.right, Key); // } // return root; Node newNode = new Node(Key); Node cur = root; Node parent = null; while (cur != null){ parent = cur; if (cur.data == Key) return root; //this line handles if K is already present in BST if (cur.data > Key) cur = cur.left; else cur = cur.right; } if (parent == null) { return newNode; } else if (parent.data < Key){ parent.right = newNode; }else parent.left = newNode; return root; }
@lavinamaheshwari Жыл бұрын
Amazing explanation!
@sudhanshudubey72672 жыл бұрын
bhaiya please make detailed video on hackathons
@ashutosh7597 Жыл бұрын
Best explaination
@abhaysingh78622 жыл бұрын
Thank u bhaiya
@abhishekdutta70642 жыл бұрын
Nice explanation sir😌
@laughgenerator79072 жыл бұрын
Node insert(Node root, int Key) { Node newnode = new Node(Key); Node curr=root; Node parent=null; while(curr!=null){ parent=curr; if(Key
@harry-cf4ii2 жыл бұрын
Bhaiya when can we expect this course to finish??and whats ur next plan after this DSA-one course?
@saritaprasad42952 жыл бұрын
Nice explanation
@v.k14542 жыл бұрын
Sir prepare will tell me whether recorder app is hybrid or not nebread
@sumantagorai58804 ай бұрын
When insert an element already present inside the tree in this case the iteration logic provided in this video was not pass all test case of GFG, was it happened with others?
@sonasonali85832 жыл бұрын
please add some more videos on android development tutorials.
@vikasprajapati65582 жыл бұрын
bhaiya what is your other source of income now ? k
bhaiya can u plzz make a video on rabin karp and kmp pattern matching algo's with code i am finding it really difficult to understand😊😊
@divyanshiyadav91202 жыл бұрын
Bhaiya how long th is course will continue ❤️❤️
@saswatapatra59192 жыл бұрын
bhaiyya second code mei what is cur.key? if cur is a node type value then it shouldnt have an attribute named key right?
@RITIKSINGH-re5ne2 жыл бұрын
curr.data and parent.data aega vaha
@itspodify20212 жыл бұрын
Bhaiya pls GROUPON sde intern ke preparation se related kisi se experience share krwa dijiye 🙏🙏🙏🙏🙏🙏 KZbin pe Groupon ki prep ka koi content available nhi hai
Bhaiya I am new or muje pata nhi hai ki DSA eitna hi hai
@Daddyboltee2 жыл бұрын
where did i do wrong its been 25 min but i coudn't find it welcome if anybody give favor in it.. class Solution { // Function to insert a node in a BST. Node insert(Node root, int Key) { Node newnode = new Node(key); Node current = root; Node Parent = null; while(key != current.key){ Parent = current; if(key < current.key){ current = current.left; }else{ current = current.right; }if(Parent == null){ Parent = newnode; }elsif(key < Parent.key){ Parent.left = newnode; }else{ Parent.right = newnode; } return root; } }