2 testcases are not passing although i have handled overflow case ,here is the link for the code
Marbles 2 tescases are passing
Hey @Abhishek-Vishwakarma-386311165319623 actually the constraints are wrong and the answer is overflowing 64 bits so its not your fault. But here I changed your code a little by using an implementation of bigint,
which can be used to print large integers. Here is the code https://ide.codingblocks.com/s/175007.
You can ignore the working of the implementation of this class and can use the same code whenever you are facing overflow issues.
If you have any further queries please feel free to ask ,otherwise please mark the doubt as resolved
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.