Your Dashboard
Interview Coaching
Learn
System Design
ML System Design
Code
Behavioral
Salary Negotiation
Interview Guides
Search
⌘K
Get Premium
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.
All Regions
Comments
Hello Interview Premium
Your account is free and you can post anonymously if you choose.