Kth Root Problem. Pls Help it is showing TLE error

https://online.codingblocks.com/app/player/161395/content/158307/4855/code-challenge

Hey @yashratnani6
Use long long everywhere also dont use the pow function because it can lead to overflow so instead calculate power using a loop and if it exceeds n then break.

Still not working please correct the code and comment my mistakes

Send me ur updated code :slight_smile:


If this resolves your query then please mark it as resolved :slight_smile:

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.