Kindly help me by giving me the Pseudo code/Algo.
I am unable to understand this question
Cannot Understand The Code Logic
Hello @rishabhkumardeveloper
in this you have to apply simple binary search on .
if x^k < n then u need to look in right interval i.e element greater than x
if x^k > n then u need to look in left interval i.e elements lesser than x.
same as our binaray search works
Here for your reference i am attaching the code:
Happy Learning!!
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.