Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

maximum product in an array solved #1275

Closed

Conversation

AbhishekGupta2405
Copy link

This code outputs the maximum product of a pair of elements in an array.

fixes #571

For this code to work properly the number of elements in the array should be greater than or equal to 2 also all the elements should be positive.

@AbhishekGupta2405
Copy link
Author

Added c++ code to find the pair of elements which produces the maximum product in an array.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Find the pair of elements with maximum product in an array.
1 participant