4 Sum

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.

Pretty Print

Print concentric rectangular pattern in a 2d matrix. Let us show you some examples to clarify what we mean.

Pagination