• + 2 comments

    The problem prompt idx = (x XOR lastAnswer) doesn't say that it should be modulo'ed by the size of the array.