Solution to 4Sum by LeetCode

8 Apr

Quesion: http://oj.leetcode.com/problems/4sum/

Question Name: 4Sum or 4-sum

The key point is to prune when further qualified combination is not possible.

2 Replies to “Solution to 4Sum by LeetCode

Leave a Reply

Your email address will not be published. Required fields are marked *

Please put your code into a <pre>YOUR CODE</pre> section. Thanks and Happy Coding!