The Mostly repeated number in range query

Revision en1, by Bnahmad15, 2018-07-14 21:42:46

given an array of integers with (N <= 1e6) and Q (Q <= 1e6) queries with L and R.. what is the mostly repeated number in range [L,R] ? is there any fast way to work it out ?

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English Bnahmad15 2018-07-14 21:42:46 223 Initial revision (published)