pyassistant

Max Product of Two Elements

Given a list of integers, write a function to find the maximum product of two distinct elements in the list.

Example:

Input:
[2, 5, 4, 1, 3]
Output:
20

Make sure you return your solution, don't print!

AI

Bot

Trying to solve my challenge? Ask if you must, or press the purple button so I can analyze your code.