Please check code where i am wrong


this is the code for kth root

couple of changes

  1. you cannot use pow() function in the check function you need to use for loop as number mid raised to k can easily overflow long long
  2. you need to include separate if condition if k == 1, in that case print n
  3. e shouldnt exceed 10 raised to 9
    https://ide.codingblocks.com/s/228908

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.