Pergunta de entrevista da empresa Groupon

Find two numbers in an array such that the second number is greater than the first one and the diff is maximum. Mathematical proof that my solution works in all cases

Resposta da entrevista

Sigiloso

18 de set. de 2017

Solved using two variables O(n)

1