You are viewing a single comment's thread. Return to all comments →
Java
public static int summingSeries(long n) { // Write your code here long m = n % ((long)Math.pow(10,9)+ 7); return (int)((m*m) % ((long)Math.pow(10,9)+ 7)); }
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 →
Java