Can someone please help me out with this problem.<br>↵
problem link-> <a href="https://www.codechef.com/COOK77/problems/CHEFINS">problem link</a> <br>↵
I saw a few accepted solutions and I'm guessing that the expected complexity is n*sqrt(n).↵
I saw a few accepted solutions and I'm guessing that the expected complexity is n*sqrt(n).↵