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.
Thanks for the feedback :), I've corrected the code.
I didn't downvote your post...
Fixed tests have the following form:
Since you have already passed some of my kata with C# have a look at the tests and you will see how they are built.
Because on linqpad the input you give is wrong as I already said.
I already answered... When you wrote: "12, 15, ..., -72769, -31744" you wrote your printing of the inputs of several different tests included in "test1()". If you want to have clearly each input of each test you have to print some separator after your lines:
I think you are at CW since long enough to understand that:-) BTW before posting issues have a look at the top of the page: 795 out of 12,246 passed the C# kata; if there were errors somebody would have seen them before you, all the more that the fixed tests are the same in all languages. Moreover there is no need to repeat a wrong issue and to downvote my previous answer... Good luck and cheers!
The input you give is wrong: you are putting 7 tests in only one...
Raise an issue on the github for reranking the kata on https://github.com/codewars/codewars.com/issues
Certainly not a "Best Practice"
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
marked as resolved
Your welcome=)
Some unnecessary brackets.
Please read the explanation above again. This should clearify this problem.
But once again an example (I'll replace spaces with underscore like you've done it before):
___uid12345
: Leading spaces; The result will be12345
uid12345___
: Trailing spaces; The result will be12345
uid_12345
: Neither leading nor trailing space! The result will be_12345
This is the problem you've got. In the random test case each userID begins with
uid#_
. Therefore every random test case expects a space at the beginning of each userID! I think I'll change this, so that there won't be any misunderstandings in the future...This comment is hidden because it contains spoiler information about the solution
Ah I see. This only seems to be wrong, but it isn't.
For example you've got the username
uid#John Jefferson
. There is a space inside the username, therefore it's not trailing or leading.If you now remove the
uid
part and replace the hashtag, you will getJon Jefferson
.In the final test cases each random UserID begins with
uid#
(<-- including a whitespace behind#
). Afterwards, there will be some random numbers added.Please mark this as resolved if your question is answered. Thanks
Loading more items...