从一串数字中找出重复数字及次数的最有效方法
Suppose I have an array of hundred integers, I need to find the duplicate numbers and I have to display that which number is occurring how many times. That is suppose array is like 100, 25, 24, 236, 100, 25,100…………………
Then my program should tell that 100 occur 3 times, 25 occur 2 times and so on. The main thing is that program should be very efficient.
I would appreciate if you can help me out.