0

One private testcase is not passing. I dont know that testcase. What may be the reason for it?

https://code.sololearn.com/chLi7YkFEtUz/?ref=app

5th Sep 2019, 3:26 PM
Geek
Geek - avatar
2 ответов
+ 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
5th Sep 2019, 8:23 PM
✳AsterisK✳
✳AsterisK✳ - avatar