Find maximum occuring integer(Mode) in an unsorted array

Posted by Rajendra on Stack Overflow See other posts from Stack Overflow or by Rajendra
Published on 2010-03-16T15:36:11Z Indexed on 2010/03/16 15:41 UTC
Read the original article Hit count: 304

Filed under:
|

How to find maximum occuring integer(Mode) in an unsorted array of integers? One O(nlogn) approach I could think of is to sort. Is there any other best approach?

© Stack Overflow or respective owner

Related posts about arrays

Related posts about interview-questions