Count Similar iTems in Array
- by Taimur Hamza
Hi guys,
I need to count the similar elements in an array. For example, if i have an array,
array[0,0,0,1,2,3,3].The number of 0's are 3 , no. of 1's are 1 , no. of 2's are 1 , no. of 3's are 2 in this array . I am sorry if this message has been posted before. Help is appreciated. Thanks in advance.
Regards,
THM
P.S : Language is C/C++