Find cardinality of each distinct element in an 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
14:38 UTC
Read the original article
Hit count: 211
c++
|cardinality
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.
© Stack Overflow or respective owner