Oh, this function runs because there are at most $\sqrt(n)$ different numbers in one block, isn't it?
Oh, this function runs because there are at most $\sqrt(n)$ different numbers in one block, isn't it?