Find the maximum product (Python)

Asked 2 years ago, Updated 2 years ago, 21 views

Use sorting x, use quick select algorithm x

Input: n = 5, 1 2 6 7 0 Output: 84 I used Quick Select to get it They say you should not use Quick Select.

python

2022-09-22 18:23

1 Answers

I don't know if I'm making it too simple, but....

I hope it's a hint. Give that a try.


2022-09-22 18:23

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.