Pagini recente » Diferente pentru problema/pixels intre reviziile 12 si 13 | Diferente pentru problema/jocgraf intre reviziile 3 si 4 | Diferente pentru blog/square-root-trick intre reviziile 79 si 78
Nu exista diferente intre titluri.
Diferente intre continut:
The update takes constant time, because we have to update the value for A and the value for the corresponding $S$.
!<{margin-right: 20px; auto;display:block;}blog/square-root-trick?image01.png!
p. The code looks like this:
.p The code looks like this:
== code(c) |
def update(S, A, i, k, x):
S[i/k] = S[i/k] - A[i] + x
Nu exista diferente intre securitate.
Topicul de forum nu a fost schimbat.