Practice Problem

Merge Triplets to Form Target

Difficulty: Medium

Given a 2D array of triplets and a target triplet, determine if the target can be formed by choosing any subset of triplets and taking the element-wise maximum.