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.
Okay. After further investigation. The kata is correct even in the test. A little more investigation on your part will reveal why. After using the print function to find out that those words weren't in the minor_words string. It made sense why it wasn't working. Working perfectly for me now.
The test is fine, none of those words is in the minor_words string.
Me too i'm so confused. This Kata has to be wrong on that test case. And the only way "a" "of" and "in" would be capitalized is if they completely do not appear in the "minor_words" string.
This comment is hidden because it contains spoiler information about the solution
Your code receives a string and returns a string, you're returning a list there, why?
This comment is hidden because it contains spoiler information about the solution
The function name "longest" implies to return the longest of s1 or s2, reinforcing the descriptions task of returning the longest string of distinct letters.
Looking at the examples, I would say it is obvious.
On codewars, you don't have to print the result but to return it.