Can someone explain the editorial of this codechef problem from codechef contest : STARTERS147
Editorial : https://discuss.codechef.com/t/data101-editorial/119398
Full text and comments »