NiCE interview question

The best algorithm to find two numbers in array which their difference is delta.

Interview Answer

Anonymous

12 Feb 2019

I sorted it with count sort and then n times took number decreased it and did binary search to find his partner.