Exercises/#111 Find All Pairs with Given Sum
#111

Find All Pairs with Given Sum

EasyπŸ“¦ Arrays
40 XP

Problem

Given an array and a target sum, find all unique pairs of numbers that add up to the target.

Examples

Input: nums = [1, 5, 3, 7, 2, 6], target = 8
Output: [[1,7],[2,6]]
arrayhash-set
AI Assistantβ€” powered by AI

Unlock hints progressively β€” start gentle, go deeper only if needed.

πŸ’‘

Level 1: Gentle Nudge

A subtle direction

πŸ—ΊοΈ

Level 2: Approach

The algorithm to use

πŸ”

Level 3: Detailed

Step-by-step guidance

111 / 150

Your Solution

⚑ JavaScript

to save progress and use AI features