Tilt of a Binary Tree - Solution | Binary Trees | Data Structure and Algorithms in JAVA
ฝัง
- เผยแพร่เมื่อ 19 ก.ย. 2024
- Please consume this content on nados.pepcoding.com for a richer experience. It is necessary to solve the questions while watching videos, nados.pepcoding.com enables that.
NADOS also enables doubt support, career opportunities and contests besides free of charge content for learning. In this video, we discuss the solution for the problem, tilt of a binary tree using recursion and minimum time and space complexity. For a better understanding of the problem, click here:
For a better experience and more exercises, VISIT: www.pepcoding....
#pepcoding #java #programming
Have a look at our result: www.pepcoding....
Follow us on our FB page: / pepcoding
Follow us on Instagram: / pepcoding
Follow us on LinkedIn: / pepcoding-education
Sir all these memes and short clips are cool and keep us engaging, but due to this now we are getting just 2-3 videos/day
hanji, shauk chadha tha. poora kar lia. kal se normal video he aaengi. ye sab minimal hoga.
@@Pepcoding sir bich mei padtei padtei kabi bore ho jate hai fir achanak sei app koi majak ker dete ho ya koi meme aa jata hai jiskei vapas fresh feel hota hai.
sir you are the best.
@@Pepcoding Shauk badi chij hain
u are great guru jii
editing ki wajah se content me aur jyada jaan aajata hai...amazing . Sumeet sir's explanation is wonderful.
Keep learning.
And for better experience, visit nados.io, where you will get well curated content and career opportunities.
@@Pepcoding Website not working
this is very interesting video and I learnt from it tilt.
Glad to hear that!
visit on nados.pepcoding.com you will find better experience with organised content.
Don't forget to follow us on Instagram instagram.com/pepcoding/
Thank you sir
I am now not sure if i understood it. We are calculating tilt for what?
we are not using it anywhere
Hi sir, which method is better maintaining pair like in diameter of tree or the method you taught in this video
mujhe pair wali pasand hain
Pair wale se solve kia?
Sir i have a question the final answer of this problem will be sum of all the nodes but we want it to return final tilt as answer?
Sir ye memes waala mast lagta hai. Ek aadhe videos mein daalte raha kariye please🙏
Sure and Thankyou beta!
I am glad you liked it. I hope that you are watching till the end and trying to understand what, how, and especially why of the problem.
If you like our efforts, will you like to write a few words about us here (www.quora.com/What-are-the-good-websites-to-learn-data-structures-and-algorithms )
please make next video on diameter of tree by the approach used in this question.
binary tree ka playlist check kijie, wo dali hui hai
Bhaiya padhate tym meme ni daalte poora systum hil jaata hai
Bhai apka knowledge to Kamaal ka hai bhai 😂😂😂
Thank you
pair approach would be better because the variable which we need to use in the function are declare inside the function
not like traveral and change strategy in which we need to declare var in the global scope
op explanation.
visit nados.pepcoding.com; post your doubts there, community will help you out.
Sir can you make a video on binary threaded tree with recursion solution
Hanji beta, ek bari jo agenda main questions h vo complete kr le, then ye sb cheeze bhi cover kr lenge
sir travel and change agar diameter ke liye use karenge toh o(n^2) jayega i think. pair waali method sabse achhi hai
Beta, I regret to inform you that, I won't be able to answer/solve the personal doubts of each and every student over here. For clearing your doubts, you can join our community on telegram - t.me/pepcoding.
Pair wale se solve kia?
great!
Sir trees ke liye aapne jo playlist bana rakhi hai wahan shuru karu na?
hanji
@@Pepcoding ok sir
At 4:00 i felt babu bhaiya😂😂😂😂😂😍
Sir ab thode questions pair class technique se bhi Kara dijiye, taki usme bhi hath set ho jaaye
5 minute mei aa rha hai.
@@Pepcoding Sir, which question..? unable to find..:(
Is a tree Binary Search Tree ...?? this one sir?
sir ab toh DP ke hard que daaldo please , stock waale ,and bilkul alag type ke jo usualy miss kr dete hai log
han beta, ye 2 din memes wala explore karne mei lag gae. Aj se DP dobara.
Sir why did you write tilt+= ltilt at 6:30 . Y are we adding tilt..we should update it with new value🤔..and also is it the total video about trees..coz u have noe yet explained trees concept in the below videos.. could you plz hlp sir..and also we are returning ts..so where is the use of tilt in that problem? Should I see the data structures which are taught before recursion topics for this?
0:20 - 0:23 you have your answer
sir, can we use diameter tree approach here i.e creating a class of data and tilt?
Beta, I regret to inform you that, I won't be able to answer/solve the personal doubts of each and every student over here. For clearing your doubts, you can join our community on telegram - t.me/pepcoding.
i think it's better solve diameter using this style
yaa we can solve it using diameter problem approach by making a class of tilt and sum but in my opinion it will take more space and time as well you can verify on leetcode.
400 vide ke bad memes xD
Sir memes ke wajah se concentration me problem ho raha hai
sir recorded complete course kabtak available hoga live courses ke price bohut zada hai sir can't afford waiting for recorded course
Free videos daal rhe hain to recorded free course ki ab koi relevance nahi
okk sir
is it just me or these memes are quite distracting...
Please stop adding memes in between. We are not here to learn about memes here.
sir zyada memes thoda distracting hojata hai ...thoda sa kamm daloge to better ho jyega
Noted. You are our guide, we will produce the way you want.
@@Pepcoding sarcasm on its peak. LoL
the edit lol
kaunse point pe?
@@Pepcoding 3:54
but sir said using global variable is paaap, hence u r doing paap here
6:54 , sir aap b bhot cute ho :) :D
tilt calculate hi kyu kr rhe hai agar koi use nahi hai toh?
Final answer m sab nodes k tilt ka sum return karna h isliye
Same question where us tilt variable is using in this can. Anyone explain??