How do I check that x is 1 greater (ahead) of y in a modulo sense (mod 3)? This is when x = 0 and y = 2, when x = 1, y = 0 and when x = 2, y = 1. I tried testing like this: It is not working for the case where x = 0 and
How do I check that x is 1 greater (ahead) of y in a modulo sense (mod 3)? This is when x = 0 and y = 2, when x = 1, y = 0 and when x = 2, y = 1. I tried testing like this: It is not working for the case where x = 0 and