Pick exactly k numbers from an array of integers so that their product is as large as possible. Negative numbers and zeros make it trickier than taking the k largest.
Pick exactly k numbers from an array of integers so that their product is as large as possible. Negative numbers and zeros make it trickier than taking the k largest.
Opens with the full question.