Pagini recente » Diferente pentru problema/grigo intre reviziile 9 si 10 | Diferente pentru problema/grigo intre reviziile 8 si 10 | Atasamentele paginii Profil Albert_G | Atasamentele paginii Profil AAsmoots | Diferente pentru blog/square-root-trick intre reviziile 82 si 83
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$.
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.
!<{margin-right: 20px; auto;display:block;}blog/square-root-trick?image01.png!
!<{margin-right: 20px; auto;display:block;}blog/square-root-trick?image00.png!
p. !<{margin-right: 20px; auto;display:block;}blog/square-root-trick?image01.png!
p. !<{margin-right: 20px; auto;display:block;}blog/square-root-trick?image00.png!
p. The code looks like this:
Nu exista diferente intre securitate.
Topicul de forum nu a fost schimbat.