One private testcase is not passing. I dont know that testcase. What may be the reason for it? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
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
1 Resposta
+ 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