like 3sum find the min gap