Courses
Tutorials
Interview Prep
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
Similar Topics
Web Technologies
32.1K+ articles
DSA
20.4K+ articles
Arrays
4.2K+ articles
Amazon
1.9K+ articles
Sorting
1.1K+ articles
Searching
1.0K+ articles
Hash
831+ articles
Google
398+ articles
two-pointer-algorithm
213+ articles
2Sum
8+ articles
3Sum
7 posts
Recent Articles
Popular Articles
3 Sum - Count Triplets With Given Sum In Sorted Array
Last Updated: 23 July 2025
Given a sorted arrayarr[]and a target value, the task is to find the count of triplets present in the given array having sum equal to the given target.More specifically, t...
read more
DSA
Arrays
two-pointer-algorithm
3Sum
3 Sum - Count all triplets with given sum
Last Updated: 23 July 2025
Given an arrayarr[]and a target value, the task is to find the count of triplets present in the given array having sum equal to the given target.Examples:Input: arr[] = [0...
read more
Hash
DSA
Arrays
3Sum
3Sum - Complete Tutorial
Last Updated: 23 July 2025
The 3-Sum problem is a classic algorithmic problem where the objective is to find all unique triplets in an array that sum up to a specific target value, usually zero. Thi...
read more
DSA
two-pointer-algorithm
3Sum
4 Sum - Count quadruplets with given sum in an array
Last Updated: 23 July 2025
Given an array arr[] and a target value, the task is to find the count of quadruplets present in the given array having sum equal to the given target.Examples:Input: arr[]...
read more
Searching
Hash
DSA
Arrays
interview-preparation
HashTable
cpp-unordered_map
cpp-map
2Sum
3Sum
4Sum
3 Sum - Find All Triplets with Zero Sum
Last Updated: 29 January 2026
Given an array arr[], the task is to find all possible indices {i, j, k} of triplet {arr[i], arr[j], arr[k]} such that their sum is equal to zero and all indices in a trip...
read more
Searching
Sorting
Hash
DSA
Arrays
Google
Facebook
two-pointer-algorithm
3Sum
4 Sum - All Distinct Quadruplets with given Sum in an Array
Last Updated: 13 August 2025
Given an array arr[], and an integer target, find all possible unique quadruplets in an array whose sum is equal to the given target value. We can return quadruplets in an...
read more
Sorting
Hash
DSA
Arrays
Microsoft
Amazon
Google
two-pointer-algorithm
2Sum
3Sum
3 Sum - Triplet Sum in Array
Last Updated: 13 August 2025
Given an array arr[] and an integer sum, check if there is a triplet in the array which sums up to the given target sum.Examples:Input: arr[] = [1, 4, 45, 6, 10, 8], targe...
read more
Sorting
DSA
Arrays
Amazon
Morgan Stanley
Samsung
Accolite
CarWale
two-pointer-algorithm
3Sum