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.
Summing the N series
Summing the N series
Sort by
recency
|
373 Discussions
|
Please Login in order to post a comment
def summingSeries(n): s=(n*n)%(1000000007) return s
Tried BigInt in js, but cannot pass all test cases.
It is just binpow(n, 2, mod) for c++
golang solution