[Community Puzzle] Criminal

https://www.codingame.com/training/medium/criminal

Send your feedback or ask for help here!

Created by @mr.x,validated by @bbb000bbbyyy,@Fireball0923 and @Master_Zain.
If you have any issues, feel free to ping them.

hello there! i 've done 100% in ide test and get 88% on the submit for “Validator 2”
Any clue about this validator ? i m really surprised as the houses pass and the other except this one.
thx

find it ! no need to simulate all the visions for performance, and really need to be careful for edge limit if you simulate a triangle of vision… gl

We had invalid tests:
Valitator 2,5 and 8

Please provide details.

What exceptions are handled in validation tests 2, 5 and 8?

The validators look quite similar to their corresponding tests. I don’t see any issues.

for the test 2 :


We have the correct result 6. For validation test 2, the test fails; what was the bet placed for validation test 2?

A few .s in Test 2 are replaced with other characters in Validator 2.

You may want to debug your code by first creating custom cases based on Test 5. In Validator 5, one of the >s / <s swaps its position with Y.

For test 5: it seems to me that no error occurs if we change the > or < to Y in the different positions

Do you mean your code passes Validator 5 now?

No, but we’re trying to run all the tests with all the Y positions (Debug) and we’re not getting any errors.but the test 5 fail

There aren’t any issues with the test cases. The issue is in your code, which causes it to fail three validators. I was asking you to debug your code by modifying Test 5 and then checking for which of the modified cases your code fails to output the correct answer, so you can identify the underlying problem.