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.
In this kata you've got to minimize the total amount of the purchase price by buying different titles which correspond to different letters of the given array and applying the shown discounts.
Post your non working code: https://docs.codewars.com/training/troubleshooting#post-discourse so we can check what was wrong with it.
match
returnsnull
when there is no match.The instructions are fine, what more do you need?
Numbers and special characters are not consonants.