Skip to content

Latest commit

 

History

History
3 lines (2 loc) · 239 Bytes

README.md

File metadata and controls

3 lines (2 loc) · 239 Bytes

4-Sum

Given an array a[] of n integers, the 4-SUM problem is to determine if there exist distinct indices i, j, k, and l such that a[i] + a[j] = a[k] + a[l]. Design an algorithm for the 4-SUM problem that takes time proportional to n^2