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ør AI

expand

Spør AI

ChatGPT

Spør om hva du vil, eller prøv ett av de foreslåtte spørsmålene for å starte chatten vår

some-alt