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.
Not general -- there is no guarantee that there are fixed number of initials.
This solution passes all the tests but is it yet correct?
Can You consider the following cases? Other solutions in top give all the same results but opposite to yours...
console.log(wordSquare("ABCDEFFGGHHIIJJJ")) // returns true - shouldn't be false?;
console.log(wordSquare('AAAAACCCCRRRRRRR')) // returns false - shouldn't be true?;
console.log(wordSquare('OOOOOOOOOOOOOOOO')) // returns false - shouldn't be true?;
JS translation removed
Same, I had to relaunch the test until this one was not called
Got almost the same problem:
[3,3], "1 2 3" -> null
Expected: null, instead got: [1, 2, 3]
I love that someone actually gave that "Best Practices".
I understand nothing
Agreed, make a simple solution for this kata.
Find out the test case is not fits the description.
Add some logic to pass that. Then the solution looks worse.
Hi,
Can you explain how you come with this logic?
I can not wrap my mind around it.
tests now use
assert_equals
nice, and here I am hardcoded the whole thing xD
Yes, I had one too!
Too many variable names, which tell nothing about what corresponding variable contains.
raised as issue
can someone please explain this?
code art
Loading more items...