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.
I like this. One minor tweak here would be to start
Range
at1
instead of0
since0
will never contribute to a sum, but that just saves you one iteration.Point taken :-)
Printing stuff is allowed. You can just print the arguments to see what the input is.
Can anybody please tell me what is the input for test 14 in the C# version?
The assert of the C# version don't have any error message. It just says:
Expected: True
But was: False
at BraceTests.Test14 () [0x00000] in :0
Not very useful. Can you please fix this?
According to the description: "The longest word will never be greater than this width.".
What if 'str' contains words whose lengths are larger than 'len'?
Never mind. I used the "Submit" as a test insted.
The "Run Tests" for JavaScript just says "Test didn't pass: Unknown error" no matter what code you put in the "justify" function. Even code with compile errors. Not so helpful.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Right. I've got up to the
[ '1', '1', 1, 2 ]
test, but no further. Without having any hint as to the underlying logic, it's pretty much "stab in the dark" kind of thinking. Which means that even if I get it right it would be blind luck, at this point.have adjusted the tests to make it easier but half the challenge is figuring out whats odd!
Have changed the testing method to address this. Good luck!
Loading more items...