My code is correct according to problem statement but it is not able to pass all the testcase can i know why?With reason
Here is my code link.
My code is correct according to problem statement but it is not able to pass all the testcase can i know why?With reason
Here is my code link.
@navin_japes
reason- overflow
if x=10^18
then x*x will be 10^36 which we can not store in x (range is not that big)
property
(ab)%c=(a%c *b%c)%c
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.