Pergunta de entrevista da empresa Microsoft

They given 3 arrays and i was asked to take 3 elements from each array such that the difference between the elements that i selected has to be minimum

Resposta da entrevista

Sigiloso

2 de set. de 2024

I said a brute force approach of iterating through 3 arrays but we have to do this using binary search which they expected