Finding kth root of a given n.o

i dont know where i am wrong
please correct my code and point out my mistakes
my code: https://ide.codingblocks.com/s/40819
questn link https://hack.codingblocks.com/contests/c/512/274

Heyy ! There are many test cases where your code fails
Like (10000 0,10000 10)
First of all initialise ei to n because answer can be more than sqrt(n) and debug your code ,dat’s it .

https://ide.codingblocks.com/s/41018
i have made the changes but still its not able to handle 10^15 number
please help me with my mistake

please reply …

Check this code , i have made some changes
https://ide.codingblocks.com/s/41019

https://ide.codingblocks.com/s/41018
my code is able to handle big numbers now but on submission on hackerblocks am getting 2 wrong answers

Yeah because there are still many test cases fr which you will get wrong answers
ex-> 24 5

i know the logic so please make changes in my code
in ur code a separate function is working whereas in mine none
thats not my code
i want to understand my mistake so that i dont repeat it in the future
please reply…

I have tried to explain the program in simple words. Reffer if you want to :smile:

Cheers​:v::v:

1 Like