#1899

Merge Triplets to Form Target Triplet

medium· Greedyruns: 0

You are given a list of integer triplets and a target triplet. To obtain the target, you may repeatedly pick two triplets and replace them with the elementwise maximum of the two. Return true if it is possible to obtain the target triplet, otherwise false.

sign in to paste and practice your own solution
desktop only

codedrill is a typing game and needs a real keyboard. open this on a laptop or desktop to practice.

you can still browse problems and sections from your phone.