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

Question:

Given an array of \(n\) real numbers, design a linear-time algorithm to find a pair of numbers that are furthest apart 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: