pls tell error in code
Pls tell error in code
Use long long int to prevent integer overflow.
Your code must be failing for large inputs
okay… let me try with that
sir still only one test case is passing
Is your code giving wrong answer or some other error?
It would be better if you comment some part of your code so that i can check the approach easily.
Here is a reference code which may help https://ide.codingblocks.com/s/308340
Here is the explanation for the approach Pls give hint for the question
yes it is showing wrong answer for the test cases not passing
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.