Please *Like* , *Comment* , *Share* , *Subscribe* and *Click Bell* 🔔🔔🔔 Icon for More Updates. To get *Data Structures and Algorithms* complete course for free please follow this link - kzbin.info/aero/PL6Zs6LgrJj3tDXv8a_elC6eT_4R5gfX4d
@shubhamagarwal14342 жыл бұрын
Best series for DS & Algo. I am also 10 yrs java exp guy. Was looking for DS & Algo free course over KZbin with java implementation and found this. Hats Off To You Man..Excellent Work. GOD BLESS YOU :)
@itsdineshvaryani2 жыл бұрын
Thanks !!!
@amitkumarjha40103 жыл бұрын
Sir no other video on internet can provide a better demonstration of recursive algorithm than yours !! Thankyou so much !!
@itsdineshvaryani3 жыл бұрын
welcome and thanks !!! keep supporting !!!
@nwokolobueze72912 жыл бұрын
You are perfectly right. There is no video as far as I am concerned that explains recursion as well as this video. I love Dinesh's videos so much.
@shubhamagarwal14346 ай бұрын
Your playlist is like energy drink, i need before my DSA interviews...helped me changeing job last year and i am sure will help me this year as well...thanks a lot bro for this wonderful playlist..
@ravibisht33002 жыл бұрын
This video is exceptional if you want to know how Recursion works man. I m glad i found this and my doubt is cleared.
@itsdineshvaryani2 жыл бұрын
Thanks !!!
@shyamsoni5153 Жыл бұрын
Sir you do very hard -work for us Thanks for giving this opportunity to learn dsa🙌
@manjuanand1551 Жыл бұрын
Best series loved it. It is helping me a lot for refreshing my preparation, Sir. Pleas add maximum value in root node and try this algorithm. It is not working. It is giving maximum element, if it is in left or right. Move the result out of the method and assign the result only when the root value is greater than the result then it will work.
@leonelmessi30106 ай бұрын
This code logic is similar to that of PreOrder: (except instead of Printing each parent node, we compare maxNode with current node and this process recursively goes on until the starting iteration is completed. and it will finally return maxNode. Sorry if I made any mistake. I just want to share the logic. Node maxNode = root; (local node) public Node maxValueRecursive(Node root){ if(root==null){ return null; } if(root.data>maxNode.data){ maxNode = root; } maxValueRecursive(root.left); maxValueRecursive(root.right); return maxNode; }
@futuremaster82042 жыл бұрын
The Best explanation in you tube
@itsdineshvaryani2 жыл бұрын
Thanks !!!
@DiegoI-i9v9 ай бұрын
Thank you for this well explained video.
@itsdineshvaryani9 ай бұрын
Welcome !!!
@mpbe2 жыл бұрын
you are amazing sir, Greatest of all time
@itsdineshvaryani2 жыл бұрын
thanks !!!
@abhishekranjan10943 жыл бұрын
sir complex hai thora sa..lakin best explanation 🥰
@itsdineshvaryani3 жыл бұрын
Thanks !!!
@ayushofficial749 Жыл бұрын
I think sir, we can also find max element using recursive inorder traversal....
@jackfrost8969 Жыл бұрын
Recursion is tuff man
@saranyavivekanandan90443 жыл бұрын
Sir, What is the complexity of this recursive program?
@itsdineshvaryani3 жыл бұрын
O(n)
@nandinijadhav1639 Жыл бұрын
Sir, i have a doubt. At line number 13 you are directly returning the result without comparing the values of left and right node. Then how will it return the max value among left and right node?
@ayushofficial749 Жыл бұрын
Dry run this code in your copy u will understand
@saranyavivekanandan90443 жыл бұрын
At 19:40, What if the right node value is 4 instead of 8? It returns 4 as the maximum among 5,3, and 4.
@itsdineshvaryani3 жыл бұрын
It will return 5... U getting 4 ???
@venkatasaikumar64006 күн бұрын
use (right>result && right>left) condition
@ascar662 жыл бұрын
Nice video! Thank you Sir!
@saurabhtipre41552 жыл бұрын
Perfect!
@itsdineshvaryani2 жыл бұрын
Thanks !!!
@doworkall48863 жыл бұрын
sir agar min value ke place par max value leekhe toh kya hoga
@itsdineshvaryani3 жыл бұрын
U will get Integers max value as answer ... Which will be wrong as that value is not part of binary tree.
@pavanrajjagdale93693 жыл бұрын
Thank you Sir🙏🏻❤
@itsdineshvaryani3 жыл бұрын
Welcome !!!
@pavanrajjagdale93693 жыл бұрын
@@itsdineshvaryani Sir please ! make video on top view of tree.
@itsdineshvaryani3 жыл бұрын
@@pavanrajjagdale9369 ok will add it to pending list ...