The code is showing runtime error for large numbers even when I have used binary search.
Code : https://ide.codingblocks.com/s/202528
Kth Root Problem
Hello @Chirag-Jain-1414278322030453,
Your code is causing infinite recursive calls because of the inappropriate logic.
I have corrected your code:
Refer to the comments for better understanding.
Hope, this would help.
Give a like if you are satsfied.