1

How to compute answer to queries of type l,r,k which finds number of elements in an array which occurs atleast k times in range l to r ? How to use Mo's algorithm?

learner
  • 11
  • 1

1 Answers1

0

If you have offline queries, you can use Mo's algorithm.

The following link is quite helpful.Anudeep's blog - Mo's Algorithm