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.
Oh ok I see. So it simply means that I can only walk one block at a time in the given direction. Thank you.
Hi, I have some problem with arrays containing two consecutive directions (the ones containing [...,'n','n',...] for example). The description says: "You always walk only a single block in a direction", so this mean that if I find arrays like in the example above I should return false, it is not valid because I walk two block in a direction. But when I run the code some of the test case fails and they contains consecutive directions, which should be false, instead it says me they should be true. Have I undertood wrong?
Thank you
This comment is hidden because it contains spoiler information about the solution
Hi. I passed all the sample tests but I can't pass 2 of the 9 random example when I try to attempt. The problem is that I can't see what string was given to the function, I can only see the value my function return and the correct value, so I don't know how to fix the function. What can I do?
Java: How's it possible to check if an int array is null? Shouldn't this work only for object arrays?
Oh God...stupid mistake, sorry. Thank you anyway.
Why repeated sentence words are not all modified when .replace is used? Shouldn't .replace do that by definition?
The description doesn't seem to ask to spin only certain words in a sentence of more than one word, but it seems this should be done. The examples suggested are (and the first one is in the sample):
spinWords( "Hey fellow warriors" ) => returns "Hey wollef sroirraw"
spinWords( "This is a test") => returns "This is a test"
spinWords( "This is another test" )=> returns "This is rehtona test"
So sometime all the words of a sentence are inverted, sometimes not. Should this be a random choise (but it seems strange to me, since the result could match the samples but even not) or am I missing something?
I already have my code and it works fine but it reverses every word, in fact this is the error I get:
expected:<[Hey] wollef sroirraw> but was:<[yeH] wollef sroirraw>
I can ask to not reverse the first word such that the program would work for the sample "Hey......" but it shouldn't work in general.