0
   

can someone help me with alogrithm please ?

 
 
lvskay
 
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
  • Topic Stats
  • Top Replies
  • Link to this Topic
Type: Question • Score: 0 • Views: 522 • Replies: 3
No top replies

 
maxdancona
 
  1  
Reply Tue 3 Dec, 2019 12:31 pm
@lvskay,
Ok, I might be able to help if you post here.
lvskay
 
  1  
Reply Tue 3 Dec, 2019 05:20 pm
@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.
maxdancona
 
  1  
Reply Tue 3 Dec, 2019 06:17 pm
@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)?
0 Replies
 
 

Related Topics

 
  1. Forums
  2. » can someone help me with alogrithm please ?
Copyright © 2024 MadLab, LLC :: Terms of Service :: Privacy Policy :: Page generated in 0.03 seconds on 11/12/2024 at 02:16:54