Remove Duplicates from Sorted Array II | Live Coding with Explanation | Leetcode - 80

Поделиться
HTML-код
  • Опубликовано: 8 фев 2025
  • Detailed explanation of leetcode 80 - Remove Duplicates from Sorted Array II
    To support us you can donate
    UPI: algorithmsmadeeasy@icici
    Check out our other popular playlists:
    ✅✅✅[ August Leetcoding Challenges ] : • August LeetCoding Chal...
    ✅✅✅[ July Leetcoding Challenges ] : • July LeetCoding Challe...
    ✅✅✅[ Cracking the Coding Interview - Unique String ] : • Cracking the Coding In...
    ✅✅✅[ June Leetcoding Challenges ] : • June LeetCoding Challe...
    ✅✅✅[ May Leetcoding challenges ]: • May LeetCoding Challen...
    Problem Link: leetcode.com/p...
    If you find any difficulty or have any query then do COMMENT below. PLEASE help our channel by SUBSCRIBING and LIKE our video if you found it helpful.
    #coding #leetcode #programminglife #programmingisfun #programmer #tech #software #codinglife #leetcode

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

  • @protyaybanerjee5051
    @protyaybanerjee5051 3 года назад +10

    I hope to see this channel as a one-stop for all LC questions! Nice explanation.

  • @eagleofsharm
    @eagleofsharm 3 месяца назад

    Best VISUAL explaination I've found on YT so far, Thank U

  • @akhilnamayt8490
    @akhilnamayt8490 3 года назад +2

    The best explanation of this problem, Thanks!

  • @perumallayaswanth83
    @perumallayaswanth83 4 месяца назад

    Great Explanation. I watched three videos before this video for this question.

  • @divyanshuchaudhari5416
    @divyanshuchaudhari5416 4 года назад +6

    Best video I found for this problem.Nice explanation.Keep up the good work.

    • @AlgorithmsMadeEasy
      @AlgorithmsMadeEasy  4 года назад

      Thanks !! 🙂
      If you are interested in Geeksforgeeks courses. do check out our latest giveaway!! 🙂

  • @prasadm3614
    @prasadm3614 8 месяцев назад +1

    Simple concise and elegant

  • @cutiex7357
    @cutiex7357 3 года назад +1

    Thank you!! This is very clear!

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

    best solution ever. thank you

  • @DWEthiopia
    @DWEthiopia 3 года назад +3

    If the length of num array was 1. Wouldn't k have to be 1? If in starts as 2, wouldn't the value for k be wrong?

    • @洪子軒北科大
      @洪子軒北科大 3 года назад

      the first line of code has precondition which are used to remove the case mentioned by you (nums.length < 3).

  • @vamshibhai5855
    @vamshibhai5855 11 месяцев назад +1

    Super cool solution!

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

    Thanks!

  • @ranlyu
    @ranlyu Год назад +1

    Best one I think

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

      but actually what happen next after 2

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

      Glad it helped. Please subscribe to the channel.

  • @SHASHANKRUSTAGII
    @SHASHANKRUSTAGII 3 года назад +1

    Thank you

    • @AlgorithmsMadeEasy
      @AlgorithmsMadeEasy  3 года назад +1

      Glad it was helpful!
      Don't forget to share and subscribe!!

    • @SHASHANKRUSTAGII
      @SHASHANKRUSTAGII 3 года назад

      @@AlgorithmsMadeEasy you can also subscribe to our youtube channel :) I also make videos.

  • @anuragchakraborty7607
    @anuragchakraborty7607 3 года назад +1

    best explanation !!!

    • @AlgorithmsMadeEasy
      @AlgorithmsMadeEasy  3 года назад

      Glad it was helpful!
      Don't forget to share and subscribe!!

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

    what if the first 3 elements were 0,1,2,3,3,3 and so on? Does your logic still work?

  • @devbhattacharya153
    @devbhattacharya153 3 года назад +1

    Thank you maam :)

    • @AlgorithmsMadeEasy
      @AlgorithmsMadeEasy  3 года назад +1

      Glad it was helpful!
      Don't forget to share and subscribe!!

  • @soumyajitchatterjee5822
    @soumyajitchatterjee5822 3 года назад +3

    Could you explain what was your though process for coming up with this algorithm? Lets say this was an interview how would you approach this problem? I tried to do it under 45 mins but I couldn't. I couldn't even solve the problem until I saw your video so it would really be helpful if I could get your insight towards approaching these kind of problems. Thanks. Your videos are great.

  • @BhagatBhutale..
    @BhagatBhutale.. Месяц назад

    👍

  • @meenukour7613
    @meenukour7613 4 года назад +1

    nicely explained ..

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

    Nice work

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

    sorry I dont understand line 6... what does in represent and why are we minusing 2?

  • @kervynrivero8099
    @kervynrivero8099 3 года назад

    NITIDO MI NEGRA..

  • @mrprime557
    @mrprime557 3 года назад +4

    worst ever explaination

  • @MAGAVISHNUT
    @MAGAVISHNUT 11 месяцев назад

    What if the array contains 1,1,2 will it work can u explain 😅