I just came up with a solution that concatenates all the vectors and find the 4 sum. But I know there is a better solution. Would someone explain a better solution ? I just see codes using O(N^2) but I can't understand it.
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.