Back
Close
  • 12245

What will I learn?

This puzzle shows that sometimes, the simplest solution is not performant enough. You will also learn to handle large arrays and gain experience with their processing time.

External resources

SortingLists

Learning Opportunities

This puzzle can be solved using the following concepts. Practice using these concepts and improve your skills.

Statement

In this problem you have to find the two numbers that are closest to each other among a list of numbers. The list might be really large and force you to search for the best possible algorithmic complexity for your solution.

A higher resolution is required to access the IDE

Story

To make a race between two horses interesting, you will have to find the horses with the closest strength.