Full Thought Process | LeetCode 287. Find the Duplicate Number | Part 1

Поделиться
HTML-код
  • Опубликовано: 13 янв 2025

Комментарии • 28

  • @niteshsingh7674
    @niteshsingh7674 2 месяца назад

    Thanks, Shiran. This is by far the best explanation I've seen in whole youtube. Believe me I have watched literally all the popular coding solutions channel. You countered the obvious question so simply & logically, it's just amazing.

  • @MrInsanepotato
    @MrInsanepotato 2 года назад +2

    Shiran, I absolutely love the way you explain things, you have an excellent thought process that seems logical and incremental. Please don't stop making videos you are amazing!

    • @ShiranAfergan
      @ShiranAfergan  2 года назад

      Thank you! what a lovely comment 😊

  • @awesomeguy6427
    @awesomeguy6427 Месяц назад

    Wow! that thought process Loved it please keep posting more of leetcode

  • @amanrubey
    @amanrubey 2 года назад

    This channel is pure gold.

  • @AM-nv4ol
    @AM-nv4ol 2 года назад +2

    im only half way through but i have to thank you for making such a clear video. everything is on point. i love how you start from the other possible solutions and pointing out how to improve on them etc. you're amazing!

    • @ShiranAfergan
      @ShiranAfergan  2 года назад +1

      😊😊 Thank you! I’m glad you enjoyed it

    • @AM-nv4ol
      @AM-nv4ol 2 года назад

      @@ShiranAfergan not only that but your visuals, production quality, and editing is amazing! :👍🏻😆

  • @fahimhasnainfahad6637
    @fahimhasnainfahad6637 9 месяцев назад

    Why don't you create videos? Really good explanation

  • @uptonogood300
    @uptonogood300 2 года назад

    thankyou shiran for this lucid explanation

    • @ShiranAfergan
      @ShiranAfergan  2 года назад

      Thanks! I’m glad you liked it 🙂

  • @solode3996
    @solode3996 2 года назад

    Very helpful, really love the illustrations through your explanation in the video, makes understanding the topic so much easier , please keep uploading these types of 'LeetCode problem explanations' videos.

  • @adityamishra4458
    @adityamishra4458 2 года назад

    How you come up with so logical way of moving to approach with intuition. Can you help to statr thinking that way with some resources

  • @agnesakne4409
    @agnesakne4409 2 года назад

    You are a worthy Fang engineer

  • @shreyanshjain4781
    @shreyanshjain4781 2 года назад

    great explanation all over youtube.

  • @SubhroSen123
    @SubhroSen123 2 года назад

    Ma'am, you teach really well. Please don't stop making videos.😊😊

  • @Cloud-577
    @Cloud-577 2 года назад

    Thank you this is much needed 💗

  • @senthilpalanisamy151
    @senthilpalanisamy151 2 года назад

    The sum from 1 to n can be calculated by a simple formula - n(n+1)/2. Subtracting this sum from the overall sum of the array would give us the duplicate number right? A much simpler algorithm fulfilling all requirements

    • @ShiranAfergan
      @ShiranAfergan  2 года назад +1

      Notice that the duplicate can appear more than twice. For example [1,2,2,2]

    • @senthilpalanisamy151
      @senthilpalanisamy151 2 года назад

      @@ShiranAfergan oh I see. Missed that. Makes sense. Great explanation

  • @bishalkumarghosh2950
    @bishalkumarghosh2950 Год назад

    great insights,but I would rather take the slow and fast pointer approach for Floyd's algorithm,that will also give the same output,even in linkedlist we use this same formula😃

  • @UCSAmit
    @UCSAmit 2 года назад

    Hii! I'm Amit from India.Your solution viedeos are really fascinating. I like the most in your videos is that first you describe the naive approach and then do the optimal way to solve it. It would be really helpful if you provide the solution of leetcode problem 31. Next permutation and 79.word search.

    • @ShiranAfergan
      @ShiranAfergan  2 года назад +2

      Hey Amit! Really glad you’re enjoying my videos :) I’ll look into those questions you requested

  • @akbar55555shaikh
    @akbar55555shaikh 2 года назад

    Great thing about your videos are , you just don’t talk about the brute force approach instead you write that solution and dry run then also solves using the optimal solution, I have watched many RUclips channels but no one has the patience like you or explain. Because they never much focus on the brute force. That becomes difficult to learner to come up with the optimal solution.

    • @ShiranAfergan
      @ShiranAfergan  2 года назад +1

      We all sometimes read a solution and think “how in the world was I supposed to come up with that??” so that’s why I want to explain the whole process from naive to optimal. I’m glad you enjoy it :)

  • @KishanKumar-mf5ru
    @KishanKumar-mf5ru Год назад

    Mam ur way of explaining is awesome 👌 keep going and keep making videos ..thank you