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
correct me if I'm wrong, but shouldn't there be a word "without" instead of "with" in the description?
Many thanks! Was super tired and missed that one :)
Your code receives a string and returns a string, you're returning a list there, why?
Can't pass this test:
[] should equal ''
so if (text) is empty, what exactly shoud be returned?
Thank you!
This comment is hidden because it contains spoiler information about the solution
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.
I mean, it was not obvious to me while reading the task's description. Maybe it's just because of my poor English skills.
Looking at the examples, I would say it is obvious.
Not very obvious if distinct letters should come from both s1 and s2 before they are merged or after.
Loading more items...