Skip to content
RED SAGSkills
medium10 pts · first answer countshash-mapcounting

Counting four-list sums to zero

Given four lists A, B, C, D of length n, you count tuples with A[i] + B[j] + C[k] + D[l] = 0. What is the hash map approach and its cost?

Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions