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.
This comment is hidden because it contains spoiler information about the solution
Guys,
I thought I understood the problem well and found the proper solution to it.
(JS)
At that, while my solution always passes complete set of "small" random tests, it fails the 1st "big" test.
Can there be something wrong with JS "big" tests or I am really so stupid on Friday morning :) ...
This comment is hidden because it contains spoiler information about the solution
didn't work on the following argument array: 4ic6j - Expected: '3pen', instead got: 'invalid word'
didn't work on the following argument array: 4ty439 - Expected: '2ante-pen', instead got: 'invalid word'
---
Sometimes I can catch the above error in random tests. The original solution seems to treat such cases wrong.
This comment is hidden because it contains spoiler information about the solution
55
is a good number! Let us stop here!..This comment is hidden because it contains spoiler information about the solution
JS random tests sometimes fail with '-NaN' generated by test as a correct answer.
Some logs given below, my solutions are obviously correct (which can be checked with direct calculation):
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?;
This Regex is wrong.
It will not approve the valid password where there is only one digit standing on the first position - i.e. please check with
1abcDEFghiJKL
It will approve the invalid password where
_
is standing on the first position - i.e. please check with_abcDEFghiJKL1
.Therefore, this solution fails rendom tests sometimes.
It is a Map preloaded by the kata author - You may use it not to draw the letters by yourself. Please check the Kata description attentively.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Loading more items...