3 Sum - LeetCode
The problem is taken from 15. 3Sum.
Naive Approach
Naive approach would be to go through all possible triplets in the array. And use set data structure to remove duplicates.
Code -
class Solution {
public:
vector<vector<int>> threeSum(vector<i...
suraj26.hashnode.dev2 min read