Pagini recente » Diferente pentru problema/algebra intre reviziile 4 si 5 | Diferente pentru blog/post-nou intre reviziile 13 si 5 | Diferente pentru problema/salsa intre reviziile 9 si 10 | Diferente pentru problema/jocgraf intre reviziile 4 si 3 | Diferente pentru blog/square-root-trick intre reviziile 27 si 28
Nu exista diferente intre titluri.
Diferente intre continut:
Being flexible and easy to code, this trick is pretty popular among the Romanian programming contests community.
Let’s check out a few problems.
Range Sum
h2. Range Sum
Given an n elements array, implement a data structure for point updates and range sum queries:
- set(i, x): a[i] := k,
This trick also works for other associative operations, like: min, gcd, product etc.
Nearest neighbour
h2. Nearest neighbour
Given a set S of n points and a query point p, find the point in S closest to p.
Nu exista diferente intre securitate.
Topicul de forum nu a fost schimbat.