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.
approved
This comment is hidden because it contains spoiler information about the solution
approved with thanks :)
This comment is hidden because it contains spoiler information about the solution
Well I would just delete it, but apparently I don't have permission, even though I wrote it in the first place...
In short: codewarriors like yourself are stuck with this kata. Complete it or just ignore it ;)
Not exactly. The keys to an object can only be strings, so if the value being compared in the switch is a string then it works, but not if it's some other type
It's an arrow function :)
The line questioned at the top of this discussion is a layperson's definition of what a spoonerism is in the domain of language. I don't think it needs to be changed as it defines a spoonerism well enough for the requirements of the kata's tests. I have added a sentence to the task description to make it explicit that "words" in the random test cases can include numbers.
Done. Thanks for raising.
The description is correct because spoonerisms are about letters in words, specifically. Random test cases contain other characters, sure, but I think the task is clear enough not to warrant an issue. If you would like a change to be made to the description, please provide a suggestion and I will consider it
This comment is hidden because it contains spoiler information about the solution
Really nice kata! Thanks for this one :)
When you say it works for all other test cases, does it work for the random test cases? It looks like you are possibly doing an additional swap that isn't needed. Check the kata description again and keep trying... ;)
Someone is on a roll... :D
Approved. Thanks. Not sure what's going on, I made this kata like five years ago and now loads of people are discussing and translating it! :)
Loading more items...