Leetcode 1899. Merge Triplets to Form Target Triplet
You are given 3-element arrays and can repeatedly replace a triplet with the coordinate-wise max of two triplets; determine whether you can produce the exact target triplet. Key idea: only triplets whose entries don't exceed the corresponding target values can contribute, so you must be able to assemble each target coordinate from such valid triplets.
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
Your account is free and you can post anonymously if you choose.