Pagini recente » Borderou de evaluare (job #2605679) | Diferente pentru utilizator/simon2712 intre reviziile 143 si 142 | Diferente pentru blog/square-root-trick intre reviziile 74 si 73 | Diferente pentru problema/muchiipermutate intre reviziile 7 si 5 | Diferente pentru blog/square-root-trick intre reviziile 86 si 85
Nu exista diferente intre titluri.
Diferente intre continut:
The query is interesting. The elements of the first and last slice (partially contained in the queried range) have to be traversed one by one, but for slices completely contained in our range we can use the values in $S$ directly and get a performance boost.
Here is an update example:
!<{margin-right: 20px; auto;display:block;}blog/square-root-trick?image01.png!
In $update(2, 5)$ we have to change $A[2]$ to 5 which results in changing the value of $S[1]$ to keep $S$ up to date.
p. !<{margin-right: 20px; auto;display:block;}blog/square-root-trick?image01.png!
p. In $update(2, 5)$ we have to change $A[2]$ to 5 which results in changing the value of $S[1]$ to keep $S$ up to date.
!<{margin-right: 20px; auto;display:block;}blog/square-root-trick?image00.png!
p. !<{margin-right: 20px; auto;display:block;}blog/square-root-trick?image00.png!
In $query(2, )$ we get $A[2] + A[3] + (A[4] + ...$
In query(2, ) we get A[2] + A[3] + (A[4] + ...
p. The code looks like this:
Nu exista diferente intre securitate.
Topicul de forum nu a fost schimbat.