Mo's algorithm - Mike Koltsov

## Introduction ## Mo’s algorithm is a generic idea. It applies to the following class of problems: > You are given array **Arr** of length **N** and **Q** queries. Each query is > represented by two numbers L and R, …