Given an array of (n) real numbers, design a linearithmic-time algorithm to find a pair of numbers

Question:

Given an array of \(n\) real numbers, design a linearithmic-time algorithm to find a pair of numbers that are closest in value.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: