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.
it is not wrong, I copy pasted the formula and starting stats from description and it worked like a charm
It's basically just alternation case but twice. The reason why it seems harder is because you tried to optimize your algorithm, such as trying to do it in one loop.
Thanks for the feedback! I think there is a bit of confusion here. This is looking for the largest positive product. [-7,234] would result in the largest negative product. Hope this helps.
No, the code will crash with a critical error