Use hashing like counting sort...

On Wed, Sep 14, 2011 at 11:20 AM, raj <raji20.pat...@gmail.com> wrote:

> program to find the top 3 repeating number from the given array
> eg
> You r given an array and u have to find out the top 3 repeated
> numbers.
>  for ex: GAURAV[]={20,8,3,7,8,9,20,6,4,6,20,8,20}
> so the output will be: 20 is repeated 4 times 8 is repeated 3 times 6
> is repeated 2 times.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Algorithm Geeks" group.
> To post to this group, send email to algogeeks@googlegroups.com.
> To unsubscribe from this group, send email to
> algogeeks+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/algogeeks?hl=en.
>
>


-- 
**Regards
SAGAR PAREEK
COMPUTER SCIENCE AND ENGINEERING
NIT ALLAHABAD

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

Reply via email to