Diferente pentru blog/square-root-trick intre reviziile #28 si #27

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.
h2. Range Sum
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.
h2. Nearest neighbour
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.