Playing Hacks and Stuffs!
We can easily solve this using python builtins pow() function
pow()
But I’ll implement binary search
Here’s my solve script: link