Find duplicates in an array - Geeks for Geeks - All the duplicates present in an array - leetcode

แชร์
ฝัง
  • เผยแพร่เมื่อ 5 ก.ย. 2024

ความคิดเห็น • 14

  • @PrakashKumar-pf5st
    @PrakashKumar-pf5st 6 หลายเดือนก่อน

    thank u brother ,

  • @HarshRaj-ph7mn
    @HarshRaj-ph7mn 2 ปีที่แล้ว +1

    *if (ans.size() == 0)
    return -1;

  • @onthego22
    @onthego22 ปีที่แล้ว

    You can still do it in one loop and without using additional array.

  • @swap6579
    @swap6579 2 ปีที่แล้ว

    Thanks Brother!!

  • @thefitfun469
    @thefitfun469 ปีที่แล้ว

    Sir yha pr app postion jb 2 pr phuche to apne phle no count nhi Kiya kyu

    • @thefitfun469
      @thefitfun469 ปีที่แล้ว

      Apne starting ki term 0 ,0,0,0,0,....0. 1st index se count Kiya kyu

  • @TheBaljitSingh
    @TheBaljitSingh 2 ปีที่แล้ว

    is methond ko mere donst ne suggest kiya tha but us time samajh nahi aaya ki wo kya kahana chhah raha tha..
    but thank you!

  • @adityan5302
    @adityan5302 2 ปีที่แล้ว

    Bro we should also not use the frequency array. That's the whole point na.

  • @leoved1073
    @leoved1073 2 ปีที่แล้ว

    kya koi iska solution without using vector de sakta hai...

    • @TheBaljitSingh
      @TheBaljitSingh 2 ปีที่แล้ว

      bhe GFG me submit nahi hoga

    • @TheBaljitSingh
      @TheBaljitSingh 2 ปีที่แล้ว +2

      kyuki function ko return bhi karna hota hai so isliye vector me store karke return kar diya