Codeforces Round 1133 (Div. 1, Div. 2) is coming soon! Register here. ×

Find the maximum occurrence of a number in the subarray.
Difference between en1 and en2, changed 4 character(s)
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)