I am having difficulty with the uestion constraints. Kindly help. Code is saved at https://ide.codingblocks.com/s/168464
Kth root constraints
Hi @yath17
Th question constraints are :
1<=T<=10 1<=N<=10^15 1<=K<=10^4
It means test cases can be from 1 to 10.
N is from 1 to 10^15
K is from 1 to 10^4
I am not getting the right answer. Kindly help
Hi @yath17
You were facing TLE in some case because you are using multiple loop. And also when k==1 then you are computing answer instead of just returning n in that case.
Here is your modified code, have a loop at it :
Mark your doubt as resolved if your doubt is cleared.
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.