Stone Division, Revisited

  • + 1 comment

    What will be the time complexity of the recursive solution (for which only 30% of the testcases pass and the rest show TLE) ? I feel it will be O(M^(log n)), can someone please confirm?