It is not working for big values ......plz help
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,

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,
