NiCE Interview Question

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

Interview Answer

Anonymous

Feb 12, 2019

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