You are viewing a single comment's thread. Return to all comments →
public static long sumOfGroup(int k) {
long ele=(k*(k-1))+1; long sum=(k*(2*ele+(k-1)*2))/2; return sum; }
Seems like cookies are disabled on this browser, please enable them to open this website
Number Groups
You are viewing a single comment's thread. Return to all comments →
public static long sumOfGroup(int k) {