Diferente pentru blog/meet-in-the-middle intre reviziile #113 si #114

Nu exista diferente intre titluri.

Diferente intre continut:

Let's go through a few applications.
h2. 4sum
h2. 4sum (popular interview question)
bq. Given A, an array of integers, find out if there are any four numbers in the array that sum up to zero (the same element can be used multiple times). For example given A = [2, 3, 1, 0, -4, -1] a solution is 3 + 1 + 0 - 4 = 0 or 0 + 0 + 0 + 0 = 0.
 
4sum is one of the most popular programming interview questions.
bq. Given A, an array of integers, find out if there are any four numbers in the array that sum up to zero (the same element can be used multiple times). For example given A = [2, 3, 1, 0, -4, -1] a solution is 3 + 1 + 0 - 4 = 0 or 0 + 0 + 0 + 0 = 0.
The naive algorithm checks all four number combinations. This solution takes $O(N^4^)$ time.

Nu exista diferente intre securitate.

Topicul de forum nu a fost schimbat.