0
One private testcase is not passing. I dont know that testcase. What may be the reason for it?
2 odpowiedzi
+ 3
maybe you should just create a function that check if half of each part "(((" is facing the same direction and the other part is all facing the same direction, if an inverse is found you can quickly return false, and if an inverse is not found its true, since you know the directions this should be easy