Groupon Interview Question

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

Interview Answer

Anonymous

Sep 18, 2017

Solved using two variables O(n)

1