Median of Two Sorted Arrays Detailed Explanation - Leetcode Java

Ғылым және технология

This video goes over a detailed explanation of the solution for the hard Leetcode problem, Median of Two Sorted Arrays, in Java.

Пікірлер: 63

  • @mystica7284
    @mystica72844 жыл бұрын

    Best explanation that I found!! You're great at explaining things. Keep going. You deserve more views👏.

  • @shahabsalem7272

    @shahabsalem7272

    4 жыл бұрын

    I’m glad you liked it, I really appreciate your support 🙌 Stay tuned !

  • @nxpy6684
    @nxpy66847 күн бұрын

    Amazing explanation! Thank you for making this!

  • @sandeepm2723
    @sandeepm27234 жыл бұрын

    Nice and easy Explanation this video deserves more views.

  • @abhimanyukukrety7074
    @abhimanyukukrety70743 жыл бұрын

    Please keep posting videos like these. This is a great explanation..

  • @manishpundir9625
    @manishpundir96253 жыл бұрын

    Best ever. Great work during pandemic.

  • @karthikeyan1996_
    @karthikeyan1996_3 жыл бұрын

    I saw many videos but in vain. You nailed it with your beautiful explanation

  • @harsh4809
    @harsh48093 жыл бұрын

    This is the only video which has the best explanation of them all. Props to you Salem. Thanks for the great explanation.

  • @shahabsalem7272

    @shahabsalem7272

    3 жыл бұрын

    Appreciate it man! 🙌

  • @natashamulla5609
    @natashamulla56093 жыл бұрын

    Just like others have said, 100% the best explanation out there. Just subscribed. Thank you, a billion times!

  • @shahabsalem7272

    @shahabsalem7272

    3 жыл бұрын

    I’m so glad you liked it, and I appreciate the kind words!

  • @praiseodeyemi3629
    @praiseodeyemi36297 ай бұрын

    Please keep making these leetcode video solutions

  • @valeriacarrillo9193
    @valeriacarrillo91932 ай бұрын

    you are really good at explaining very helpful thank you very much!

  • @hoangwolf
    @hoangwolf2 жыл бұрын

    Best explanation I have ever found. Good jobs!

  • @mohammedsadiq1567
    @mohammedsadiq15674 жыл бұрын

    Man !! Don't stop making these, please!

  • @shahabsalem7272

    @shahabsalem7272

    4 жыл бұрын

    Appreciate the love 🙌

  • @srsh12345
    @srsh123457 ай бұрын

    Great explanation. Thank you for the breakdown

  • @tahaali01
    @tahaali012 жыл бұрын

    Great Explaination! Didn't know Binary Search could be this complex

  • @AmanKumar-kz1rn
    @AmanKumar-kz1rn3 жыл бұрын

    best explanation among all youtube videos, I have seen each and every video regarding this question but none of them explain so well, thanks, buddy. this video deserve more views

  • @shahabsalem7272

    @shahabsalem7272

    3 жыл бұрын

    I’m really glad it helped man and I appreciate all your support 🙌😊

  • @manasbohat6883
    @manasbohat68833 жыл бұрын

    BEST EXPLANATION, THANK YOU MAN

  • @vgtgoat
    @vgtgoat2 жыл бұрын

    This was really great. Thank you

  • @ortaldasa3247
    @ortaldasa32473 жыл бұрын

    Great explanation!! Thank you!

  • @autosigner3294
    @autosigner32943 жыл бұрын

    Excellent explanation. Thank you.

  • @pankajas6448
    @pankajas64482 жыл бұрын

    keep going bro its very useful system design, and leetcode solutions

  • @jinendrajain7672
    @jinendrajain76723 жыл бұрын

    really like the way u explained, keep doing it , it helped alot.

  • @theodoregerasimov9134
    @theodoregerasimov9134 Жыл бұрын

    O(log(min(m+n))) time complexity which is faster than the initial O(log(m) + log(n)) we were asked. Great! Although I'm interested what the solution with theoretical complexity O(log(m) + log(n)) would have looked like.

  • @shyamreddy5742
    @shyamreddy57422 жыл бұрын

    If you not explain this problem, i could never understand it. Thanks a lot

  • @lostgen36
    @lostgen363 жыл бұрын

    Your explanation is too good bro!

  • @martinharris4416
    @martinharris44163 жыл бұрын

    please continue making tutorials for programming problems, just solve problems on leetcode with some explanation. Would love to watch them with your explanation

  • @chandanabitra3863
    @chandanabitra38633 жыл бұрын

    Very clearly explained!

  • @jeffrythename5885
    @jeffrythename58853 жыл бұрын

    Nice explanation! great job!

  • @adeshmatkar5859
    @adeshmatkar58593 жыл бұрын

    Awesome Bro..even some google engineers couldn't explain this way..hats off!

  • @shahabsalem7272

    @shahabsalem7272

    3 жыл бұрын

    Thank you sir 🙌

  • @thenotaveragejoe
    @thenotaveragejoe3 жыл бұрын

    Great explanation!

  • @ek2386
    @ek23864 жыл бұрын

    I love these kinds of videos. Thankyou professor Salem. Next, can we go over Integer to Roman?

  • @shahabsalem7272

    @shahabsalem7272

    4 жыл бұрын

    Thanks Eman, glad it helped 🙌 I’ll look into Integer to Roman and it’s possible I’ll make an explanation for it.

  • @martinharris4416
    @martinharris44163 жыл бұрын

    watching this for 3 rd time in a few months. I struggle to remember LC Hards and how i approached them like after a month or so. So my strategy is to make Anki Flash Cards and store the solution as the answer. Most of the problems i remember the approach once i just see the question or think about it but these LC hards mess with my brain. Anyway im glad i watched this again, felt like i understood much more than the last time.

  • @shahabsalem7272

    @shahabsalem7272

    3 жыл бұрын

    That an awesome strategy, I've also used Anki for Leetcode problems in the past! LC Hards are tough don't worry you aren't alone. I think having a general idea on how to approach an LC Hard (what data structure/algorithm to use etc) will be enough and you can figure out the rest of the minor details when answering the question. Good luck and thanks for watching!

  • @Jason-ze8jv
    @Jason-ze8jv3 жыл бұрын

    Nice video! I wanted to ask, in the coding implementation could we still make this work if high was initialised to arr.length - 1 rather than arr.length?

  • @mannana8550
    @mannana85502 жыл бұрын

    This is awesome stuff. Can you make more explanation videos please? It was very easy to follow

  • @khushable
    @khushable3 жыл бұрын

    Awesome explanation. Hope you get more subscribers, brother. i totally appreciate how you could optimize on whiteboard space

  • @shahabsalem7272

    @shahabsalem7272

    3 жыл бұрын

    Appreciate it! Glad you liked it!

  • @jyotibisht1546
    @jyotibisht15462 жыл бұрын

    this vedio is really very helpful for me

  • @muhammadjanjua2338
    @muhammadjanjua23382 жыл бұрын

    This helped me alot. Thx

  • @viditsharma3929
    @viditsharma39293 жыл бұрын

    the best explanation . thanks

  • @sachin3525
    @sachin35253 жыл бұрын

    Great Work Man!😎, you deserve more man🤷‍♂️... Just subscribed!

  • @shahabsalem7272

    @shahabsalem7272

    3 жыл бұрын

    Thanks man, appreciate you!

  • @gayatrijoshi5951
    @gayatrijoshi59513 жыл бұрын

    Great explanation 😊👍

  • @soumyajitchatterjee5822
    @soumyajitchatterjee58223 жыл бұрын

    Great explanation! Just wondering how did you come up with this way of solving the problem. If this was in a coding interview It would've taken me 45 days than 45 mins. Also keep it up!

  • @shahabsalem7272

    @shahabsalem7272

    3 жыл бұрын

    Thank you! You’re definitely right about that, this is a tough question to come up with an optimal solution for in 45 minutes. I would say if this was an interview and you hadn’t see this type of question before you probably don’t need to come up with the the most optimal solution to pass, although of course this will depend on your interviewer’s expectations. I think as long as you are able to clearly explain your thought process and the pros and cons of a certain approach, illustrating a solid understanding of DS & A and Complexity analysis, you will have a good chance of doing good. However, I think the ability to solve new problems really comes from practice; not trying for 5 minutes and looking at the solution, but really trying to solve it independently and then understanding the reasoning behind your approach. This will allow you to recognise patterns in similar problems and help you perform better when faced with new problems.

  • @soumyajitchatterjee5822

    @soumyajitchatterjee5822

    3 жыл бұрын

    Thanks. I will follow your advice.

  • @LinnaDu
    @LinnaDu3 жыл бұрын

    Good job! Thanks.

  • @LegitGamer2345
    @LegitGamer23453 жыл бұрын

    This question is amazing

  • @lomeshdaheria9960
    @lomeshdaheria99603 жыл бұрын

    Thanks buddy😁😊

  • @MridulManocha
    @MridulManocha4 жыл бұрын

    Thank You ✌️

  • @el3ctrickitty
    @el3ctrickitty4 ай бұрын

    thank you so much

  • @pewdiepieschair2693
    @pewdiepieschair26933 жыл бұрын

    great job lad

  • @martinharris4416
    @martinharris44163 жыл бұрын

    amazing

  • @rajusonkusare7495
    @rajusonkusare74953 жыл бұрын

    Did a great job dude. But how is it logarithmic? You are just incrementing or decrementing 1 based on if the max of left half of A or B is greater than min of right half of A or B.

  • @Prashantkumar-pn6qq
    @Prashantkumar-pn6qq4 жыл бұрын

    Hi Shehab, Why did you apply Binary Search on the smaller array? Can we choose any array for the same?

  • @Prashantkumar-pn6qq

    @Prashantkumar-pn6qq

    4 жыл бұрын

    BTW amazing explanation. You earned yourself a subscriber here ✌

  • @user-tt7po9td3x
    @user-tt7po9td3x6 ай бұрын

    I’m walking out if I get this question

Келесі