Leetcode 15. 3Sum
As we have already solved “Two Sum” problem already, let’s reuse our existing knowledge to solve this problem. We know the target and we want to search 3 numbers. We know how to search 2 numbers, so if we fix one number at a time and look for the other two numbers using our previous solution that would solve this problem as well.
Prefer video over text? Watch the explanation here: https://youtu.be/MmhfOzYMYPk … More Leetcode 15. 3Sum