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

Demandez à l'IA

expand

Demandez à l'IA

ChatGPT

Posez n'importe quelle question ou essayez l'une des questions suggérées pour commencer notre discussion

some-alt