Java Program to Remove Duplicate Elements from Sorted Array

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

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

  • @ashwiniv7053
    @ashwiniv7053 5 лет назад +9

    nice explanation. Thank you

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

      Thank you for making it easy to understand. this is saved my time,

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

      Remove Duplicates from Sorted Array Without using Any Extra Space (NEW VIDEO)
      ruclips.net/video/KBNEFJFaXYo/видео.html

  • @mjj3tube
    @mjj3tube 3 года назад +11

    Hi ,the size of the new array is the same as the previous one right ,in that case the leftover spaces of the new array will have zeros right

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

      yes zeros are displaying on rest places

  • @026maheshkumars7
    @026maheshkumars7 2 года назад +2

    u are speaking within yourself

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

      Hi Mahesh, sorry for the inconvenience you faced, you will never face any such issues in my new videos. Thank you for highlighting this issue.

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

      Remove Duplicates from Sorted Array Without using Any Extra Space (NEW VIDEO) -
      ruclips.net/video/KBNEFJFaXYo/видео.html

  • @0ZANGETSUFLASH0
    @0ZANGETSUFLASH0 5 месяцев назад +2

    can u please explain me why did you need to declare arr[j++]=arr[j] AFTER FOR LOOP what does it mean

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

      Just for curiousity, can you tell me in which course and semester are you studying now?

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

    thanks
    how i can put 0 instead of the duplicate elements

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

    Are you able to remove duplicates if the list is not sorted in order?

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

      through this code without sorting order its not possible

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

      Can use hashset

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

    wrong program 19, 17, 12, 17, 17, 17, 18, 10, 17, 14, 15, 15, 12, 19, 17, 12, 13, 11

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

      It's not a sorted array. Atleast, you have read the problem statement.

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

      @@ProgrammingTutorials1M ya bro .... shit

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

    if we print through for each loop with length of the original array its prints all the number from the original array

  • @rithikanbalagan-d4l
    @rithikanbalagan-d4l 6 месяцев назад

    what will happen if last element is duplicate element

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

    Very helpful, thank you!

  • @suchitragiri4546
    @suchitragiri4546 4 года назад +2

    Very nyc!! bt here voice is very low

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

    Bro can u make videos for zoho?

  • @mohamedabdullah4832
    @mohamedabdullah4832 3 года назад +5

    for(i=1;i

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

    Screen meda words vastunnai bro program sariga kanipinchatam ledu

  • @aleksandraSwedenVlog
    @aleksandraSwedenVlog 3 года назад +5

    like from Sweden

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

      I am in support of your country against Islamic riots. Jai hind 🇮🇳

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

    this video voice is not coming properly can you plz provide the proper video

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

    Thoda jor se bolo.....

  • @munazzainamulhaque8863
    @munazzainamulhaque8863 4 года назад +2

    Thanks!

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

    Is there a way to do this during the sorting ?

    • @FirefoxGuy18
      @FirefoxGuy18 10 месяцев назад

      Can do it with hashmap

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

    Volume is very low improve it please

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

    thank you! :)

  • @SriraM-px4vl
    @SriraM-px4vl 2 года назад +1

    Useful

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

    Thx

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

    Reached end of the file while parsing

  • @chahattiwari5181
    @chahattiwari5181 6 лет назад

    Try itna highfy

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

    voice .....

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

    Remove Duplicates from Sorted Array Without using Any Extra Space (NEW VIDEO) -
    ruclips.net/video/KBNEFJFaXYo/видео.html

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

    it is also working in unsorted array

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

    temp[j++] = arr[len-1] ?