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.
After 3 intents my code passed but I 've had fails with logs like this:
It seems random tests generate invalid strings.
Duplicate issue.
Don't suggest how to do it.
clue: try str2 = MTAJCBXVVUOGPTQXTUHK
The tests occasionally go haywire. If I keep submitting my solution it eventually errors. This does not seem to be a problem with my code.
In the example below with str1 = NAOOKDQTSRJMWJZIFCO str2 = MTAJCBXVVUOGPTQXTUHKO, the tests expect a value of "undefined".
Thanks for completing the Kata, a good and compact solution! I just used plain text spaces in the test expectation as Codewars displays in plain text.
I'm just saying for JS I used
\xa0\
for spaces as mentioned here https://stackoverflow.com/questions/33539797/how-to-create-string-with-multiple-spaces-in-javascript. When I entered my results it gave me errors. I spent alot of time trying to figure out why it didn't work. the "expectecation" and the "actual" results from the tests were the same. Then I decided to use" "
as in" ".repeat()
. It was frustrating trying to figure out why the answer was not accepted.;-)
Could you please tell me where abouts the code needs fixing, the line number?
I'm happy to make changes. Thanks.
Is there anything else I can do?
Thanks.
I have deleted the commented out text in solution and tests.
Thanks.
Why don't you just delete the outdated part instead of commenting them out? They're already obsolete so there's no reason to keep them.
Is the issue resolved?
I have removed Example Test Cases with input validation comments. And all other comments. Thanks.
I have removed input validation from sample tests.
Thank you.
Loading more items...