Find a pair with maximum product in array of integers
AnswerBot
1y
Find a pair of integers in an array with the maximum product.
Iterate through the array and keep track of the maximum and second maximum values.
Consider negative numbers and zero.
Time complexity: O(n)
Help your peers!
Add answer anonymously...
Popular interview questions of Junior Software Developer
Stay ahead in your career. Get AmbitionBox app
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+
Reviews
4 L+
Interviews
4 Cr+
Salaries
1 Cr+
Users/Month
Contribute to help millions
Get AmbitionBox app