DataDriven
LearnPracticeInterviewDiscussDailyJobs

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
L4

Problem

You are reconciling a ledger export where `nums` holds integer amounts that can repeat and `target` is the figure two amounts must sum to. Find every distinct value-pair, each returned as `[a, b]` with the smaller amount first and the whole result ordered by first amount then second. A value that occurs many times still yields a given pair only once, and an equal-value pair such as `[3, 3]` counts only when that amount actually appears at least twice in `nums`.

Summary

Two numbers walk into an interview...

Practice This Problem

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

Related

  • All Practice Problems
  • Mock Interview Mode
  • Python Interview Questions
  • Data Engineering Interview Prep Guide
  • Daily Challenge
  • Data Engineering Lessons