Loading...

The Perfect Match

A medium Python interview practice problem on DataDriven. Write and execute real python code with instant grading.

Domain
Python
Difficulty
medium
Seniority
mid, senior

Problem

Write a function that finds all unique pairs of integers in a list that sum to a given target. Return each pair as a sorted two-element list [a, b] where a <= b. Return all unique pairs sorted lexicographically.

Practice This Problem

Solve this Python problem with real code execution. DataDriven runs your Python code in a sandboxed Docker environment and grades it instantly.