It is not working for big values ......plz help

https://ide.codingblocks.com/s/253880…

hello @dhirenkinha
dont use pow function as pow(mid,k) can be a very big number which will cause overflow .

take help from this code snippet,
image