Loading...
The Triple Alliance
A hard Python interview practice problem on DataDriven. Write and execute real python code with instant grading.
- Domain
- Python
- Difficulty
- hard
- Seniority
- mid, senior
Problem
Given a list of integers and a target value k, return all unique triplets - groups of three distinct indices - whose values sum exactly to k. No triplet should be repeated, and the order of triplets in the output does not matter.
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.