You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
intsumma(int a, int b, int k, int x, int y) {
if (b < x || a > y) return0;
if (a <= x && y <= b) return p[k];
int d = (y+x)/2;
returnsumma(a, b, 2*k, x, d) + summa(a, b, 2*k+1, d+1, y);
}
Oheinen koodi on parempi kuin luvun 28 alussa oleva.
The text was updated successfully, but these errors were encountered:
Oheinen koodi on parempi kuin luvun 28 alussa oleva.
The text was updated successfully, but these errors were encountered: