Why answer should be in modulo 10^9+7
Why we have to answer the result in modulo of 10^9+7. The reason behind this is, time constraints. When we deal with very large numbers though implementing using efficient algorithms results in TLE or outputs us some garbage value.
Why modulo
To p...
yashaswikakumanu.hashnode.dev1 min read