We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- Mathematics
- Algebra
- Shashank and List
- Discussions
Shashank and List
Shashank and List
Sort by
recency
|
14 Discussions
|
Please Login in order to post a comment
C# one-line:
static int solve(long[] a)=>(int)((a.Aggregate(new BigInteger(1), (b, n) => (b * (BigInteger.ModPow(2, n, 1000000007)+1))%1000000007)-1)%1000000007);
Not very readable for java guys though...
movies
nice blog https://luxurystruggle.com/
My code is giving timeout on case 7,8,9,10. can anyone help?