I think this is more correct solution for gig pots 12th July 2023 solution #6
-
class Solution {
}; |
Beta Was this translation helpful? Give feedback.
Answered by
getlost01
Jul 12, 2023
Replies: 1 comment
-
Ya, thanks for pointing these issues.
Just so you know, I only upload my solution after successfully passing all the test cases with the code. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
getlost01
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ya, thanks for pointing these issues.
long long res = 1; // Use long long to avoid overflow
, it is indeed a mistake that I acknowledge.# define mod 1000000007
this modulus value is already defined by default in the driver code, that why I didn't redefine it. But now I think they might changed the driver code.Just so you know, I only upload my solution after successfully passing all the test cases with the code.