Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.

book
Restore Balance to the Triples

Given an array of three arrays of triples of integers, return the missing triple of integers to make them all add up to 0 coordinatewise

Example 1

Input:

[[1, 2, 3], [9, -2, 8], [17, 2, 50]]

Output:

[-27, -2, -61]
main.cpp

main.cpp

C++

Fragen Sie AI

expand

Fragen Sie AI

ChatGPT

Fragen Sie alles oder probieren Sie eine der vorgeschlagenen Fragen, um unser Gespräch zu beginnen

some-alt