NeetCode #793LC-1899MediumGreedyNC 150NC 250
← Back to All Problems#793 · #1899 · Merge Triplets to Form Target Triplet(合并若干三元组以形成目标三元组)
📌 Problem Statement & Constraints
You are given a 2D array
triplets and an integer array target. In one operation pick two triplets and replace them with their element-wise maximum. Return true if you can obtain target. Constraints: 1 <= triplets.length <= 10^5, triplets[i].length == 3, 1 <= triplets[i][j], target[j] <= 1000.🔒
Sign In to Unlock Full Solutions for All 973 Problems
Sign in to access step-by-step logic, benchmark Python3 code, complexity breakdown, and offline export!