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.
oops.. sorry. posted to wrong branch
Did you get the last test to work somehow?
There shouldn't be any box blocking line of sight. So let's say the box you'd like to see is on level 1 and it's in the third row, if you look from the north then we cannot have any boxes on rows one and two.
In the same scenario if special box is on level 2 then you can have boxes in row one and two up to level 1, but if you have another box on level 2 or higher, then you wouldn't see special box.
This would have been nice to know going in. I wound up with these numbers hard-coded based on test cases and had no idea why.
This comment is hidden because it contains spoiler information about the solution
Could anybody help me to understand the question better?
Is the question finding a direction to see the target, meaning that there isn't any block that isn't any other box align before on that direction before the box we want to find?
I am unable to pass the test case with this preset, while I have checked the test case manually that my code works as expected.