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.
Given an array of \(n\) real numbers, design a linear-time algorithm to find a pair of numbers that are furthest apart in value.
Step by Step Solution
3.30 Rating (153 Votes )
There are 3 Steps involved in it
Creating an algorithm to find a pair of numbers that are furthest apart in a given array is essentia... View full answer
Get step-by-step solutions from verified subject matter experts
