4Sum II Flashcards

1
Q

4Sum II

Given four lists A, B, C, D of integer values, compute how many tuples (i, j, k, l) there are such that A[i] + B[j] + C[k] + D[l] is zero.

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly