Reply
Tue 3 Dec, 2019 11:30 am
im a computer science student and i have module to to , i don't really understand what's going on there
@lvskay,
Ok, I might be able to help if you post here.
@maxdancona,
im not able to post a picture but lemme write
question : There are k integer numbers. It is necessary to find two numbers (among k) whose absolute
difference is minimum.
@lvskay,
Ok. I can think of two ways to do this. The easiest is to sort the numbers first (there is probably a faster way that avoids the sort).
What is your idea (I will help you with your homework rather than doing it for you)?