🎯 Variation of Two Sum Questions
Here are 25 questions that are exact similar to the classic Two Sum problem , with slight variations. If you have any specific questions, feel free to ask! 👇🏼
- Two Sum
- Two Sum II - Input Array Is Sorted
- Two Sum III - Data Structure Design
- Two Sum IV - Input is a BST
- Two Sum BSTs
- Two Sum Less Than K
- Three Sum
- Three Sum Closest
- Three Sum Smaller
- Four Sum
- Four Sum II
- Boats to Save People
- Count Good Meals
- Count Nice Pairs in an Array
- Count Number of Bad Pairs
- Count Number of Pairs with Absolute Difference K
- Divide Players into Teams of Equal Skill
- Finding Pairs with a Certain Sum
- K-Diff Pairs in an Array
- Max Number of K-Sum Pairs
- Number of Excellent Pairs
- Number of Pairs of Strings With Concatenation Equal to Target
- Number of Subsequences That Satisfy the Given Sum Condition
- Tuple with Same Product
- Valid Triangle Number
- Prime-pairs-with-target-sum
- Target-sum (Its is actually like subset sum but you can use same approach as two sum)
If you have any patterns like the Two Sum problem or others, please comment below to help others.
Comments (10)

