← back to unit
Medium
# puzzle gauntlet medium
The Triple Team
Three superheroes must combine powers to hit EXACTLY the villain's shield number. 🦸
You get the hero powers (at least three) and the shield. Print team found if any three different heroes sum exactly to it, otherwise no team.
Example:
Input: powers = [1, 5, 3, 9], shield = 9
Output: team found
1 + 5 + 3 = 9 hits the shield exactly.
💡 need a hint?
pg-triple-team.py🔒 given lines are locked — write your code in between
loading...