You are viewing a single comment's thread. Return to all comments →
golang solution
func summingSeries(n int64) int32 { mod := int64(1000000007) return int32(((n % mod) * (n % mod)) % mod) }
Seems like cookies are disabled on this browser, please enable them to open this website
Summing the N series
You are viewing a single comment's thread. Return to all comments →
golang solution