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 English as well, indicating posession of a plural noun is done with an apostrophe after the s; e.g. "That is the cows' field."
There's the jazz tune "'S Wonderful". Also in German if your word ends in "s" and you want to express possession you need to put an apostroph after it.
duplicate of this issue
When running random tests, I noticed that the expected result treats a word like ft'decj' as a word. In my code, the apostrophes on the side of the word are removed. In my response, this word was extracted as the string ft'decj — and I believe this is correct because I don't know any words that begin or end with an apostrophe.
Please consider correcting the tests.
While the error message seems to be indeed confusing, your solution returns wrong answer for following test case:
test.assert_equals(top_3_words("a'"), ["a'"])This comment is hidden because it contains spoiler information about the solution
as it so happens,
wontis itself already a distinct word from the contractionwon'tanyway'won't' and 'wont' are different words in this task due to apostrophy. Seems like you managed to remove all characters that are not a letter, but the exception is that this symbol => ' is a valid character that shouldn't be removed, which makes the word unique. For example, 'ab' !== 'a'b'. Hope that helps.
for text = " //wont won't won't "
: expected [ 'wont' ] to deeply equal [ 'won't', 'wont' ]
I dont understand why my wont answer isnt correct. What am i missing here? JS btw.
update apostrophies should be treated like letters, got it
"oh this is just freq counting lol this is easy"
i regret saying that
My dyslexic ass has been reading the rules as "case-sensitive" instead of "case-insensitive" this whole time :')
Okay, if you really want to go like this, wouldn't the example from the description be
["a", "I", "an"]?This is not true: there are 3 "aa" and 2 "cc"
This comment is hidden because it contains spoiler information about the solution
Loading more items...