What is wrong only one test case pass
Is there anyone to help its been more than 24 hours,still no response
Hello @pankajpoply45,
I am a C++ TA and your code is in python.
The problem that student face in this question is the datatype to store the value of ans as it can be greater than the range of long long.
Solution is:
bigInt
I have made some changes in your code:
The changes have been made keeping in mind the C++ implementation:
Suggestion:
Start from main and skip the implementation of bigInt.
Hope, this might help.
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.