LetsGrowMoreCommunity / DSA-Playyard

Explore the world of Data Structures and Algorithm
18 stars 51 forks source link

find a pair with highest product from a given array of integers #18

Closed sameeksharl closed 3 years ago

sameeksharl commented 3 years ago

Contribution Guidelines for this question

sameeksharl commented 3 years ago

Sample Input/output

Original array: [-1, 2, 0, 4, 9, 0, 10, 4] Maximum product pair is: (9, 10) Original array: [0, 1, -2, -6, 5, 0, -6] Maximum product pair is: (-6, -6)