Click here to Skip to main content
15,885,309 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear All,


int array_numbers[]={1,2,3,4,1,2,3,1,9,6,7,8};

what will be the best way to find home duplicate numbers from the array and each duplicate numbers count.


Regards,
Ranjith
Posted

1 solution

sort array and then start counting/deleting

visit link
http://stackoverflow.com/questions/4003584/more-elegant-way-to-check-for-duplicates-in-c-array[^]

Happy Coding!
:)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900