( Interview Question ) I was asked this question in Interview. How to solve it?

Given a number 3*n, you need to tell is it possible to form 3 arrays x,y,z of size n in such a way that xi+yi=zi. Note:-no number can be used more than once.

For more details on the question visit this link:-
https://mycode.prepbytes.com/problems/arrays/FAVOURITES

1 Like