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.
I have no clue what do these arrays mean, how to interprate them?\n
["F", "T", "H", "F", "T", "R"]
any one can explain them more please?
like how to know how many copies of which topic?
thanks
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.yeah I solved it, I just wanted to know how did it fail regex trap
The instructions are fine, what more do you need?
Numbers and special characters are not consonants.
well, the instruciton should be more clear, it has some imbiguty when it comes to numbers and special characters,
it's always failing regex trap I don't know why,
although when i take the regext trap text "0123456789_" and match it with my regex, it shows "null"
please do improve the description little bit more, I thought it will be a 2 minutes kata, now it's taking more that 1.5 hours
🤣🤣🤣🤣🤣
wow, vim works in commets too Lol
I really tried very hard to solve it this way, store the indecies of spaces in one array, then store the indecies of first letter of each word in an other array,
but i couldn't proceed forward with linking the two arrays after storing values,
slute to you for compeleting it this way