Pergunta de entrevista da empresa Amdocs

3 arrays (A, B, C) Find all a, b, c that maintain a+b=c Also implement a singleton class.

Resposta da entrevista

Sigiloso

10 de jun. de 2019

Sort all of them Outer loop - for each c element Inner loop - take the highest in A and lowest in B. if a+b is higher, advance b. If lower, advance a.