Given an array of integers, select K elements such that product is maximized. Return product.
Did a sorting based approach - but missed some cases where all the numbers were negative, followup was
- No extra space after sorting
- No sorting - suggested Priority queues.
How would u do it?
Comments (16)


