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.
Compilations tests should be added for cases like
calc.One.One.One
orcalc.One.Plus.Plus.Times
Input is of format
x;y
instead ofy;x
, so0;0 0;0 0;1 1;1
givesinstead of
.
Not an issue ;-)
FixedTests("0;0 0;0 0;1 1;1",0)
Test Failed
Expected and actual are both <System.Char[3]>
Values differ at index [2]
Expected: 'e'
But was: 's'
Why it should be "east"? If array contains element at position 0;1 that means 0;0 will be not visible from "east".What am i doing wrong or what i don't understand?
Yes: https://github.com/codewars/codewars.com/wiki/Troubleshooting-your-solution#how-can-i-see-which-input-causes-my-solution-to-fail
random test always shows failed...
Is it possible to display, in addition to the error, the input array to understand what the problem is.
Nothing is told about such cases in the description.
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.
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.
Approved as an easy 5 kyu.
Average rank was messed up by an 8 kyu. :D
Hey! Congratulations on making your first kata.
I made some minor improvements: