sir this is a code to compute x^n where x is very large so i took it as string. please help me why isnt it working
Evaluation functions doubt
@Shivanchal-Agarwal-2530139037020445
Change Line 24. to this
res[i] = result%10 + ‘0’;
You also missed to return res in pow function.
Even still your code will never work for this problem. You have to use either Java BigInteger or Python to solve this problem.
sir i am having problem in using bigint
i never learned it. is there any other way i can do?
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.