Your question is Three-Element Target Combinations. Start with the requirements on the right.
Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.
Warner Music Group may need to identify three compatible catalog attributes whose numeric scores reach a required total. Given an array of integers and a target value, return every unique combination of exactly three elements whose sum equals the target.
Implement three_sum_target(nums, target).
nums is a list of integers.target is an integer.target.nums.You may reorder nums in place.
def three_sum_target(nums, target):