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.
You can print the input to console.
The assertion message shows you that you returned words which appeared 26 (
xkplxopy
), 21 (vbgj
), and 21 (mfvitvken
) times in the text while the expected top 3 words werenhflorve
(29 times),xkplxopy
(26 times, you got this one) andbfvymtvh'
(23 times, note the apostrophe at the end).31 is a permutation, not a substring, the same with the others. You can't change the order of the digits, only take some of them next to each other.
don't mutate the input
The
ISSUE
label is for provable kata issues. Please use theQUESTION
label when asking for help. See https://docs.codewars.com/training/troubleshooting#post-discourse.Nowhere in the description is mentioned that you should sum all the elements to the right.