Only keep triplets that don't exceed target; we need to hit each target coordinate.
Scan triplets.
If a triplet is component-wise <= target, it’s eligible.
Track whether we’ve seen an eligible triplet matching tx, ty, tz in each coordinate.
Return true if all three coordinates can be matched.
Merging uses component-wise max, so any value exceeding target can never be used; and achieving target requires some chosen triplet(s) contributing each exact coordinate.
Only keep triplets that don't exceed target; we need to hit each target coordinate.
Scan triplets.
If a triplet is component-wise <= target, it’s eligible.
Track whether we’ve seen an eligible triplet matching tx, ty, tz in each coordinate.
Return true if all three coordinates can be matched.
Merging uses component-wise max, so any value exceeding target can never be used; and achieving target requires some chosen triplet(s) contributing each exact coordinate.