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

AIに質問する

expand

AIに質問する

ChatGPT

䜕でも質問するか、提案された質問の1぀を詊しおチャットを始めおください

some-alt