• + 2 comments

    That's what I'm trying to say, I'm looking at the code and twoRobots is not being called for each test input, it's being called once regardless of how many test inputs there are. The value of m is basically being ignored here, aside from being passed into the twoRobots function, it's supposed to run twice here because t == 2 for two test cases, but it's only reading and testing the first case.

    I'm trying to fix it here by adding another loop somewhere around here, I'm just wondering if this is a glitch with the java version or I'm not understanding something.

    https://i.imgur.com/9l6Bu4k.png