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.
My solution failed one of the sample tests -- I returned [[0]] instead of [] -- but passed the entire set of tests on Attempt. That should not happen. The easiest way to fix that might be to add that failed test to the complete set, so it gets caught there, too.
Yes, I see that now. Looks good!
I would still suggest that you should indicate the precedence of error messages when there's more than one thing wrong with the input. You can simply look at how your reference solution handles these situations and then explain that precedence in your description.
Hi Colonel,
That sounds fine, but I'm not seeing the change yet in the description. Do you need to save it or something to make it visible to others?
See the issue raised and then prematurely closed 23 days ago (below). You have still not specified in your description what is to be done with zero-length strings in lines 2 and 4.
It is NOT fully addressed, because the description still does not specify what is to be done with zero-length strings in lines 2 and 4.
Big time fun! Forced me to reconsider my approach a few times along the way. Prior knowledge of chess was definitely helpful. Thanks for creating this!
Changed Python and JavaScript tests to allow a tolerance of 0.01.
Approved :)
Fun challenge of reasonable difficulty. Thanks for creating it!
The description states: "
goalgoes up to 10^10!" That's a pretty large number. In fact, this is probably why I haven't solved this one yet myself :-)(Well, that, and it reminds me of the middle school kids I tried to teach while they were more interested in playing clicker games on their laptops.)
"But my code has to be right!"
(...re-reads description...)
"Oops, it doesn't say 'first char minus last char.'" :P
Thanks. I changed my satisfaction rating accordingly.
Reading the description and looking at the examples, it appears as if the board is always seen from White's perspective (i.e., with White pawns moving from bottom to top and Black pawns moving from top to bottom). Is that true for all tests?
EDIT: Apparently so, but this ought to be mentioned in the description.
The "Your Task" section of the description calls for multiple houses to be connected by the word "or" (and tests expect this, too). But your example in the description shows the word "and" instead. This should be corrected.
Great fun! Kept me busy for several hours until I realized a few key things. Thanks for creating it.
Loading more items...