Count Similar iTems in Array

Posted by Taimur Hamza on Stack Overflow See other posts from Stack Overflow or by Taimur Hamza
Published on 2010-05-07T11:33:42Z Indexed on 2010/05/07 11:38 UTC
Read the original article Hit count: 136

Filed under:
|

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++

© Stack Overflow or respective owner

Related posts about c++

Related posts about c