Binary Tree Maximum Path Sum - (Google, Meta, Amazon, Flipkart) : Explanation ➕ Live Coding

Поділитися
Вставка
  • Опубліковано 10 лют 2025
  • This is the 18th Video of our Binary Tree Playlist.
    In this video we will try to solve a very good Qn "Binary Tree Maximum Path Sum".
    We will do live coding after explanation and see if we are able to pass all the test cases.
    Problem Name : Binary Tree Maximum Path Sum
    Company Tags : Google, Meta, Amazon, Flipkart
    My solutions on Github : github.com/MAZ...
    Leetcode Link : leetcode.com/p...
    GfG Link : practice.geeks...
    My GitHub Repo for interview preparation : github.com/MAZ...
    Subscribe to my channel : / @codestorywithmik
    ╔═╦╗╔╦╗╔═╦═╦╦╦╦╗╔═╗
    ║╚╣║║║╚╣╚╣╔╣╔╣║╚╣═╣
    ╠╗║╚╝║║╠╗║╚╣║║║║║═╣
    ╚═╩══╩═╩═╩═╩╝╚╩═╩═╝
    #coding #helpajobseeker #easyrecipes #leetcode #leetcodequestionandanswers #leetcodesolution #leetcodedailychallenge #leetcodequestions #leetcodechallenge #hindi #india #hindiexplanation #hindiexplained #easyexplaination #interview #interviewtips
    #interviewpreparation #interview_ds_algo #hinglish

КОМЕНТАРІ • 176

  • @dhritisaluja2526
    @dhritisaluja2526 Рік тому +41

    This is the first video that I have watched and I have to admit I'm in love with your voice as well as your teaching skills. Thank you is not enough for the work you are doing. I am glad I found you :) Soon will let you know what I achieved after watching all your videos :) God bless you Comrade

    • @codestorywithMIK
      @codestorywithMIK  Рік тому +1

      Thank you so much
      Means a lot 😊

    • @gui-codes
      @gui-codes 6 місяців тому +2

      MIK bhai to poora famous hogae hain 😍

  • @itsaayush7357
    @itsaayush7357 11 місяців тому +11

    This guy has some exceptional skills of explaining code . Mtlb itna ache s kon smjhata h yar. Har ek question ese smjhaya jata h jese hum chote bache he aur mil bhaiya hmare bade bhaiya.
    He always keeps in mind ki koi bhi doubt na rahe hamare mind me and isliye br br vo hr cheej repeat bhi krte rhte he.

  • @thegreekgoat98
    @thegreekgoat98 2 роки тому +40

    This guy can really give a tough competition to Striver in terms of Smooth Explanation, easy to understand way of teaching and the simplicity with which he makes us understand. Legend in making!

    • @codestorywithMIK
      @codestorywithMIK  2 роки тому +5

      Thank you so much Chinmoy for your appreciation ❤️❤️❤️

    • @1taps234
      @1taps234 2 роки тому

      @@codestorywithMIK Could you please upload a video solution of leetcode 2467. Most profitable path in a Tree?

    • @FanIQQuiz
      @FanIQQuiz Рік тому +1

      Totally agree

    • @shabananoor9423
      @shabananoor9423 Рік тому +1

      True

    • @thefinalfit
      @thefinalfit Рік тому +1

      True

  • @mayankchauhan5134
    @mayankchauhan5134 2 роки тому +10

    I have no words, Just keep it up, youtube ka best education channel bn skta hai ye.

    • @codestorywithMIK
      @codestorywithMIK  2 роки тому

      Thanks a lot Mayank❤️❤️❤️

    • @aws_handles
      @aws_handles 11 місяців тому

      Already ban gaya hai ab to lagta hai

  • @codestorywithMIK
    @codestorywithMIK  2 роки тому +18

    I understand that the variables were funny but that's where magic happens 😆
    Time Complexity : O(n) -> Because we are visiting every node only once.

  • @tauquirahmed1879
    @tauquirahmed1879 2 роки тому +7

    bhaiiya i was watching your video in a browser where I didn't had any logged in account. But after watching i felt like "Yr iss bande ko subscribe aur like nhi krenge ko kisko krenge"....
    Thanks Pure dil se for this great explanation. Now onwards I will ask doubts also from you whenever I am stuck in a problem.

    • @codestorywithMIK
      @codestorywithMIK  2 роки тому

      Thank you so so much Tauquir
      You made my day ❤️❤️❤️

    • @aws_handles
      @aws_handles 11 місяців тому

      Sahi baat

  • @viveknandan4950
    @viveknandan4950 5 місяців тому +10

    I thought no one could beat striver in dsa, but then I saw this channel.

  • @thefinalfit
    @thefinalfit Рік тому +6

    At this point, I am now convinced that this guy is the best in DSA among any other UA-cam channels

  • @player1legendary196
    @player1legendary196 11 місяців тому +2

    Bro!!!!!! Salute to your Explanation 👏🙌

  • @Hello_Coders_18
    @Hello_Coders_18 День тому +2

    thanks a lot ..mai iske pehle 2 3 video dekhi kuch nhi samjha appka ek baaar mai samajh gya..

  • @oqant0424
    @oqant0424 2 роки тому +6

    When a man is hungry, it is better to teach him to fish than to give him a fish » attributed to Confucius . « If you give a man a fish, he’ll eat someday, if you teach him to fish, he’ll always eat
    that's what you are doing.........rather than just giving the solution....you are
    teaching us how to build logic🔥🙌

    • @souravjoshi2293
      @souravjoshi2293 2 роки тому +3

      Indeed. So apt . I totally agree. This guy is something else

    • @codestorywithMIK
      @codestorywithMIK  2 роки тому +4

      Thank you so much.
      Your comment made my day ❤️❤️❤️❤️

    • @oqant0424
      @oqant0424 2 роки тому +4

      @@codestorywithMIK your explanations make my day🙌..............after watching your video i feel like i have learnt something

    • @codestorywithMIK
      @codestorywithMIK  2 роки тому +2

      @@oqant0424 Means a lot ❣

  • @vishwashsoni610
    @vishwashsoni610 3 місяці тому +6

    itna khatarnak koi kaise explain kar sakta hai mujhe to code he yaad ho gaya is question ka sach me ... itna mast explanation !!! hard to very easy banadiya aap ne ❤

  • @TechHaiko
    @TechHaiko День тому +1

    Bhaiya, bahut bahut shukriya! 🙌 Main kuch dino se aapke videos follow kar raha hoon, lekin aaj aapne realize karwaya ki fundamentals samajhna kitna zaroori hai. 🔥 Aapne is video me bataya ki agar left + right + root->data return karenge to path ke definition ko hi violate kar denge! Matlab, pattern samajhne se pehle fundamentals clear karna bahut zaroori hai. ❤

  • @priyajaiwal8072
    @priyajaiwal8072 3 місяці тому +6

    I nominate this questions's explanation as one of your top10. This channel feels like being friends with topper. 👻

  • @gui-codes
    @gui-codes 6 місяців тому +3

    you are nothing but a magician. No one can beat this level of explanation as of now on youtube.

  • @souravjoshi2293
    @souravjoshi2293 2 роки тому +9

    Indeed the variables were 🤣
    But dude, you nailed it. You are literally crazy.
    I have never ever seen this kind of thorough explanation. More power to you bro
    💪

    • @codestorywithMIK
      @codestorywithMIK  2 роки тому +3

      Glad to know 😂😂😂
      And thanks a lot ❤️❤️❤️

  • @dishandshah660
    @dishandshah660 8 місяців тому +3

    what a guy!! this knowledge cannot be achieved even in paid courses! you are the king

  • @pranavpranjal2717
    @pranavpranjal2717 7 місяців тому +5

    Bhai u r not the next anyone u r our first MIK. Mark my words this channel is going to become the best beating everyone else. Top class explanation.

  • @manishv.8167
    @manishv.8167 2 роки тому +8

    Please start the DSA from zero advance if possible and make it huge , you will loved by everyone for sure

    • @codestorywithMIK
      @codestorywithMIK  2 роки тому +5

      Sure Manish. I have a plan for that as well. Couldn’t start due to time crunch.
      But planning it soon .
      Thanks again for your valuable feedback ❤️❤️❤️

  • @udaytewary3809
    @udaytewary3809 2 роки тому +5

    Really great bhaiya you are really legend in explanation of code literally anybody who see your way of explanation will become truly fan of yours
    your Hindi handwriting is also great bhaiya and you are absolutely right by your variable naming when I think of those variable names whole code came into my mind once again thanks bhaiya 😊😊😇

  • @danishsaifi1038
    @danishsaifi1038 2 роки тому +4

    You are a gem bhai even though i have solved the question but came here to watch your solution cause I always learn something from your video.
    Thank you for this amazing explanation.

  • @pranavkhatri30
    @pranavkhatri30 2 роки тому +4

    great explanation bhaiya!

    • @codestorywithMIK
      @codestorywithMIK  2 роки тому +1

      Noted Pranav. Thank you so much for watching ❣

  • @piyushacharya7696
    @piyushacharya7696 2 роки тому +2

    reach++
    bhai aag laga di.
    Waise toh mane ye qn karliya tha but supporting your channel bro🔥

    • @codestorywithMIK
      @codestorywithMIK  2 роки тому

      Thank you so much Piyush ❤️❤️❤️

    • @piyushacharya7696
      @piyushacharya7696 2 роки тому +1

      @@codestorywithMIK bhai yeh variable naming bohot accha hai yar while practicing.
      fokat ka comment likhna nahi padta har variable ke liye.
      Bro you rock😎😎

    • @codestorywithMIK
      @codestorywithMIK  2 роки тому

      Thanks a lot ❤️❤️❤️

  • @ky5vf
    @ky5vf 2 місяці тому +1

    I think c++ code is more easy to understand in terms of what to return
    int maxPathSumUtil(Node* root, int& res)
    {
    if (root == nullptr)
    return 0;
    // Recursive calls for the left and right subtrees
    int ls = maxPathSumUtil(root->left, res);
    int rs = maxPathSumUtil(root->right, res);
    // Max path sum at the current node
    int temp = max(max(ls, rs) + root->data, root->data);
    // Max path sum considering both children
    int maxVal = max(temp, ls + rs + root->data);
    // Update the overall maximum path sum
    res = max(res, maxVal);
    return temp; //return sum for current node
    }
    int maxPathSum(Node* root) {
    int res = INT_MIN;
    maxPathSumUtil(root, res);
    return res;
    }

  • @manishv.8167
    @manishv.8167 2 роки тому +4

    Your channel is going to grow soon man

    • @codestorywithMIK
      @codestorywithMIK  2 роки тому +2

      Thanks a lot Manish.
      It means a lot to me. I just want all of us to grow together and not fall for paid courses in market. We can do it together 💪💪💪
      Thanks again ❤️❤️❤️

  • @devanshsrivastava4000
    @devanshsrivastava4000 4 місяці тому +1

    best explanation sir , earlier i was just mugging up this question, but now i found the right approach ,Thank You!

  • @nagmakhan672
    @nagmakhan672 2 роки тому +2

    The variables really did the magic 😄

  • @FanIQQuiz
    @FanIQQuiz Рік тому +1

    You are a LEGEND
    Soon people will know about you ❤

  • @oqant0424
    @oqant0424 2 роки тому +3

    what an explanation!!!!!!!!!!

  • @tusharaggarwal3975
    @tusharaggarwal3975 Рік тому +1

    Bhai kya hi explanation hai yaar..😮 5 min me code krke uda diya mzaa aagya logic sunke..❤🎉

  • @mohd.vaseem7410
    @mohd.vaseem7410 Рік тому +1

    you are genius ,the level of detail you have provided in this solution is amazing

  • @gomzysharma
    @gomzysharma 2 роки тому +1

    OMG, this is so good reasoning, You have my heart, so easy pezzy to crack such questions where similar approach is used.

    • @codestorywithMIK
      @codestorywithMIK  2 роки тому

      Thanks a lot Gomzy ❤️
      Really appreciate your comment 💝💝💝

  • @see2672
    @see2672 Рік тому +2

    great explaination bhaiya after watching intuition I was able to write code on my own. Thanks a lotttt

  • @blackstargaming3678
    @blackstargaming3678 Рік тому +1

    I was stuck in the proper explanation of line by line code, previously I knew the concept of finding max path sum but now I understood the code properly

  • @GghiggFfhhhf
    @GghiggFfhhhf 3 місяці тому

    Striver se bas smjh aaya tha bhai ne feel de diya ❤❤

  • @chinmaykotkar8456
    @chinmaykotkar8456 2 роки тому +6

    Mom look i found gold for motivating me to keep doing leetcode!
    please suggest me any resources for learning stack queue linked list basics only for now ,, ASAP

    • @codestorywithMIK
      @codestorywithMIK  2 роки тому +2

      Thanks a lot Chinmay.
      I would suggest you to study any topic like this :
      1) Understand the DS (example : stack)
      2) Solve popular qns on them (Easy and Medium) . Don’t solve random ones. Solve which are frequently asked in interviews.
      3) For company and interview qns : github.com/MAZHARMIK/Interview_DS_Algo

    • @chinmaykotkar8456
      @chinmaykotkar8456 2 роки тому +1

      @@codestorywithMIK already starred your repo, but I need to learn stack , linked list, queue from basics , for that I need resources, can you suggest some

    • @codestorywithMIK
      @codestorywithMIK  2 роки тому +2

      I learned them separately sometimes from UA-cam, sometimes from GfG.
      I think, for leading a topic, GfG is good enough.
      Then for solving qns, go for leetcode

    • @chinmaykotkar8456
      @chinmaykotkar8456 2 роки тому +1

      @@codestorywithMIK ok got it..

  • @ujvalborole4862
    @ujvalborole4862 2 місяці тому +1

    expalined and dri run from the example was nice

  • @aws_handles
    @aws_handles 11 місяців тому

    Bhai bade bade UA-camrs k video dekhe. Lekin isse acha explanation kahi nahi mila. Guruji ho aap.
    If anyone can beat this level of explanation, I am ready to loose a bet of 1000 😂😂😂

    • @Lakshya-f4l
      @Lakshya-f4l 7 місяців тому

      Kuch din bad inka channel har jagah dikhega.
      Inke jaisi explanation aur intuition koi nhi de pata .

  • @shwetasrivastava7565
    @shwetasrivastava7565 23 дні тому +1

    Dude u are just great.....🥺❤️ though the length of your videos are long..but each minute is worth watching 🙌🏻🥺

    • @codestorywithMIK
      @codestorywithMIK  23 дні тому

      I appreciate the love! Glad you find it worthwhile. 😇🙏

  • @princekumar-wo1vl
    @princekumar-wo1vl 8 місяців тому +1

    thanks bhaiya last part hi dekhne ayaa tha aur apne wahi bataya hai

  • @tanishqagarg7582
    @tanishqagarg7582 2 місяці тому

    u cn beat the legend, i don't mind spending time with your videos if they are helpful good job

  • @dileshchouhan9527
    @dileshchouhan9527 2 роки тому +1

    great explanation bhaiya

  • @harshitsrivastava62
    @harshitsrivastava62 2 роки тому +3

    Maujj dila di bhai

  • @manishjoshi9737
    @manishjoshi9737 11 місяців тому +1

    bhaiya phli barr achhe se smj m aaya abhi tk code ratt rkha tha, ab #no_ratta_maar🥰

  • @parshotam9904
    @parshotam9904 2 роки тому +1

    Nice Explanation dude
    I Pray magic will happen with your this journey on youtube.

  • @amansrivastava1360
    @amansrivastava1360 2 роки тому +1

    kya bat bhai matlb maza agya...keep it up man🔥🔥

  • @sifatsamir0076
    @sifatsamir0076 7 місяців тому +1

    nice approach...love from Bangladesh❤

  • @alokgautam02
    @alokgautam02 2 роки тому +1

    Thanks for being consistent.

  • @dakshmalik14
    @dakshmalik14 9 місяців тому +1

    Bro you will soon have a blast of subscribers....you are too good🔥

  • @viditvaish7317
    @viditvaish7317 11 місяців тому

    as usual you are amazing ,unmatchable ,unbeatable in domain of explaining the concepts and intution

  • @study-yd6es
    @study-yd6es 7 місяців тому +1

    Amazing Explainations Sir!!!

  • @destinyfindsme
    @destinyfindsme Місяць тому +1

    Love your explanation!

  • @AnjuGupta-sz1uk
    @AnjuGupta-sz1uk Рік тому +1

    Really Bhaiya, You are Great, You made this hard level question very easy ... you explained all the points very clearly. Thanku so much Bhaiya for providing us such a great videos which are helping us a lot in our Preparation. Really loved the your way of teaching and the explanation.

  • @atharvpal7038
    @atharvpal7038 Рік тому +1

    Great Video bhaiya!
    Thanks a lot! Took me a good time to understand , but I was sure you can simply it.

  • @taneyasoni
    @taneyasoni Рік тому +1

    this channel will never disappoint you.

  • @nisthasingh1281
    @nisthasingh1281 8 місяців тому +1

    Thanku so much for THE GREAT EXPLANATION

  • @SuyashTalks
    @SuyashTalks Рік тому +1

    Tooo Good 🙌

  • @vineetkumar2899
    @vineetkumar2899 2 роки тому +1

    Yrr bhaiya maza aagya ❤️

  • @SaranshKasliwal
    @SaranshKasliwal 6 місяців тому +1

    Dude loved this video man I am never gonna forget this answer

  • @amanbalhara7365
    @amanbalhara7365 2 роки тому +1

    Explanation was so easyy, i was like ki hogya bss itta hi, im loving ur videos nd learning alot from you, thankyou so much❤️

  • @OtakRajCodes
    @OtakRajCodes 2 роки тому +1

    wow , beautifully explained .

  • @semisapien4058
    @semisapien4058 Рік тому

    I was stuck on this ques for such a long time after seeing so many youtube videos but you , sir explained this concept so beautifully that I'm in awe.
    Also sir please make a q&a video , would love to know your journey ❤

    • @codestorywithMIK
      @codestorywithMIK  Рік тому

      It means a lot. Thank you so much ❤️❤️🙏🙏
      Sure, I will make a video soon.
      Feel free to share with your friends and colleagues ❤️❤️

  • @BharatBanavalikar
    @BharatBanavalikar 15 днів тому +1

    beautifully explained

  • @Kumar-up2lj
    @Kumar-up2lj Рік тому +1

    Bhai bhot hi mst explanation, contest k solution bhi kra dia kro please

  • @jawwadumar2100
    @jawwadumar2100 Рік тому +1

    you will be next striver for us .. may be even better than him .. keep it up

  • @tanishqagarg7582
    @tanishqagarg7582 2 місяці тому

    such a beautiful explanation

  • @gaurimandot5788
    @gaurimandot5788 Рік тому +1

    JUST GREAT🤩

  • @top_g755
    @top_g755 Рік тому +1

    Dhanyawad guruji

  • @divyanshrawat2859
    @divyanshrawat2859 7 місяців тому +1

    one comment for your god level teaching ❤

  • @divyanshsagar
    @divyanshsagar Рік тому +1

    beautifully explained!

  • @dhruvchauhan4155
    @dhruvchauhan4155 2 роки тому +1

    Great explanation ! Just subscribed this channel....

  • @harshitsachdeva
    @harshitsachdeva 5 місяців тому

    Great explanation 🫡

  • @adil_k
    @adil_k 6 місяців тому +1

    Only video on this problem which is actually helpful.
    Lots of love to you bro

  • @Lakshya-f4l
    @Lakshya-f4l 7 місяців тому +1

    Took the code of finding diameter and made some changes.
    It got accepted 😅

  • @souravjoshi2293
    @souravjoshi2293 2 роки тому +2

    Mujhe myCodeSchool waale teacher ki yaad agai .
    I wonder, ya to aap wahi waale Sir ho, ya unke bhai ya bete honge 🤔
    Nation wants to know 🤣

    • @codestorywithMIK
      @codestorywithMIK  2 роки тому

      😂😂😂😂
      MyCodeSchool’s tutor is a legend .
      I stand nowhere compared to him 😁
      But to answer your qn,
      I am neither his son or brother 😂😂😂
      Thanks btw ❤️
      I’ll take that as a compliment 😅

  • @pavankhubani4191
    @pavankhubani4191 Рік тому

    This is brilliant...

  • @ArjunSaxena-wl3qs
    @ArjunSaxena-wl3qs 11 місяців тому +1

    Python Buds :)
    # It's same as Diameter of Binary Tree
    class Solution:
    def maxPathSum(self, root: Optional[TreeNode]) -> int:


    if not root :
    return 0

    res = float('-inf')
    def helper(root) :
    nonlocal res
    if not root :
    return 0

    left = max(helper(root.left),0) if root.left else 0
    right = max(helper(root.right),0) if root.right else 0

    res = max(res,left + right + root.val)

    return max(left,right) + root.val

    helper(root)
    return res

    • @ArjunSaxena-wl3qs
      @ArjunSaxena-wl3qs 11 місяців тому +1

      just the additional case, to handle negative paths, koi branching agar negative sums return kr rhi ho ,us case mei 0 return kardo ,

  • @Chakss
    @Chakss Рік тому +1

    AMAZING EXPLANATION, UNBEATABLE

  • @harikrushnasuhagiya3925
    @harikrushnasuhagiya3925 Рік тому +1

    AMAZING

  • @utkarshawasthi7748
    @utkarshawasthi7748 Рік тому +1

    Op sir

  • @ezcoding69
    @ezcoding69 Рік тому +1

    same bhaiya .....intuition aagya tha,code likh diya tha ......bas return kya karna hai wahi khel samapt ho gya.......

  • @codeandtalk6
    @codeandtalk6 Рік тому +1

  • @dayashankarlakhotia4943
    @dayashankarlakhotia4943 Рік тому

    Class solution {
    Static int max Down sum(TreeNode root,int[]max value){
    if(root==null)return0;
    intleft sum=MATH.MAX
    (0,max Down Sum((root.left,max value));
    int right Sum=MATH.MAX (0 max Down sum(root. right ,max value));
    max value (0)= Math.Max (max Value (0),left sum+right sum+root. Value);
    return root. Value +Math.Max (left sum,right. Sum);
    }
    Public []int max pathsum (Treenode root){
    int[]max value =new int[1];
    Max value [0]=integer.MIN_VALUE;
    max down sum(root,max value); return max value (0);

  • @easyvedicmaths886
    @easyvedicmaths886 11 місяців тому +1

    now,only i understood this...kon acha hai and kyu?,.. :)

  • @ganeshmula4508
    @ganeshmula4508 Рік тому +1

    🤯🤯🤯❤❤

  • @Dollykumari-vi2wr
    @Dollykumari-vi2wr 5 місяців тому

    please explain why we are adding l ,it is pointer why its not l.val and r.val when adding to root.val

  • @sumitgarg11
    @sumitgarg11 4 місяці тому

    bhaiya kya m ak youtube channel open kar lu vha par m bhi solution smja du ga , koi nhi smj aya tho ak baar appka sol dhek lu ga kabhi kabhi match bhi so saktha hai sol

  • @kumarsaurabh5449
    @kumarsaurabh5449 2 роки тому +1

    agr root vale value he negative hogi to hum kon sai case ko consider karengai

    • @codestorywithMIK
      @codestorywithMIK  2 роки тому +2

      maxSum ko humne initially maxSum = INT_MIN kar rakha hai.
      So, root’s negative value will be greater than INT_MIN ,
      So in that case we only take that root’s value which is the only choice we are left with.

    • @codestorywithMIK
      @codestorywithMIK  2 роки тому +1

      The best way how i handle these, is to take a small example of the scenario you want to understand and do a dry run.
      It always helps me

  • @gypsygirlkigypsylife
    @gypsygirlkigypsylife Рік тому

    this is q-1373 of leetcode?

  • @amir26ansari
    @amir26ansari Рік тому

    Hi, {name}
    kaunsa editor use kia hai or tablet connected hai?

  • @hasii36263
    @hasii36263 6 місяців тому

    where is the case when adding root->val is decreasing the sum lets say root->val is -1000 l is 20 r is 30

  • @closer9689
    @closer9689 8 місяців тому

    Jisne apka Diameter of Binary Tree vala video dekha hoga vo esse easily bna lega...

    • @Lakshya-f4l
      @Lakshya-f4l 7 місяців тому +1

      I literally copy pasted that code and did some changes.
      It got accepted 😅.

  • @rishabhjain5281
    @rishabhjain5281 9 місяців тому +1

    After seeing his solution I lost respect for this problem 😅

  • @pankajjangra7
    @pankajjangra7 2 роки тому +2

    subscribe kr diya bhai....
    video thumbnail & channel logo thoda improve ho skta h. Pdhate to bdhiya ho hi

    • @codestorywithMIK
      @codestorywithMIK  2 роки тому +1

      Sure.
      Point taken. Will improve them soon.
      Thanks a lot ❤️❤️❤️

  • @shashwatchawla
    @shashwatchawla 2 роки тому +1

  • @nilakshishree3938
    @nilakshishree3938 Місяць тому +1

    My solution: leetcode.com/problems/binary-tree-maximum-path-sum/solutions/6213461/beats-100-users-approach-recursive-dfs-e-0ee4