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++

Spørg AI

expand

Spørg AI

ChatGPT

Spørg om hvad som helst eller prøv et af de foreslåede spørgsmål for at starte vores chat

some-alt