Pagini recente » Monitorul de evaluare | Diferente pentru problema/rell intre reviziile 4 si 5 | Diferente pentru problema/arbore5 intre reviziile 3 si 4 | Diferente pentru problema/design intre reviziile 18 si 2 | Diferente pentru blog/square-root-trick intre reviziile 78 si 77
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:
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.