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.
This kata does not perform normal brace matching: it considers
[)
a brace match that is invalid. In any normal brace matching if braces are unmatched it just goes till the end.The kata's brace matching behaviour is flawed anyway as it will fail to cases like
[)]
.(Also, the kata does not specify what are considered open/close brace characters, which are
[({
and])}
respectively.)There are no random tests.
Yesterday I had to go.. Anyway, my bad! I was wrongly assuming that board arrays initialization was supposed to respect board visualization so I got columns and rows swapped. Again sorry for wasting your time.
That said, maybe it's supposed to be this way as part of the challenge but since the description is so well done in my opinion could be a good thing to point out that first array is first column etc.
Thanks for the reply. My point is: in TestVsNextFreeStart1, if the last board (which my code fails) is the same board I have explicited in TestOneField1 I don't get how could the same code reacts differently on the same input?
Hi I'm not sure that is the same issue but, I'm facing a strange behavior.
I changed the first test (and added a newone) like this:
In both cases test is passed and because of the 2 success, I'm guessing I'm not wrong in interpreting board and coordinates.
During "TestVsNextFreeStart1"
this is what happens:
Shouldn't the last board tested be the same as my TestOneField1? If it's not how could I pass TestOneField?
This comment is hidden because it contains spoiler information about the solution