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.
This solution returns incorrect result for expression:
(2 - 2.5) - (-3 - 2) * (-5)
Returns -5.5, but should be -25.5
What a beautiful solution! I've thought in this direction, but regretfully haven't got to the end.
This comment is hidden because it contains spoiler information about the solution
RegExps are wonderful, but I'd prefer to work with a copy of input array since we mutate it.