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.
the code form
is an antipattern. instead use
Happy to help! :)
That is correct. Because order of multiplication doesn't matter, the product of the sorted numbers is the same as the product of the unsorted.
You don't need to sort the values beforehand and you're not getting the last value sorted anyway (i<x.length-1 should be i<x.length).
Should probably add that any characters other than '|' or 'J' should be mapped to '...'. That really wasn't clear.
This is an antipattern. Just do: