Find the maximum occurrence of a number in the subarray.

Правка en1, от 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 :) )

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский giaminh8368 2022-12-23 18:13:43 4
en1 Английский giaminh8368 2022-12-23 18:13:30 328 Initial revision (published)