Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Right. Thank you!
-27,-15,-6,-4,-1
, so thek = 2
biggest numbers (the maxima) are-1
and-4
I am confused (apologies if somebody asked this before) but in the explanation it reads:
maxProduct ({-4, -27, -15, -6, -1}, 2) ==> return (4)
Explanation:
As far as I understand this is incorrect as -27*-15 = 405 which is greater than 4..
or is there something I missed?