use HashMap ... take KEY as the number to be counted and value to be count
to value of given number.

now every time same number appears ....increment value of count int the
hashMap for that number.
use STL to write code.

On Sun, Dec 18, 2011 at 1:13 PM, venkat kumar <[email protected]>wrote:

> how to use hashing to find repeated no in an array? pls give me code in c?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Algorithm Geeks" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/algogeeks?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to