Find the maximum occurrence of a number in the subarray.

Revision en1, by giaminh8368, 2022-12-23 18:13:30

Hello. I recently met this problem but can't solve it, please help me solve it.

Given an array of n integers. There are q queries. Each query gives us a subarray from l to r. Find the maximum occurrence of a number in the subarray.

(Sorry for my bad English :) )

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English giaminh8368 2022-12-23 18:13:43 4
en1 English giaminh8368 2022-12-23 18:13:30 328 Initial revision (published)