You are viewing a single comment's thread. Return to all comments →
The problem prompt idx = (x XOR lastAnswer) doesn't say that it should be modulo'ed by the size of the array.
Exactly
yea this question is shit
Seems like cookies are disabled on this browser, please enable them to open this website
I agree to HackerRank's Terms of Service and Privacy Policy.
Dynamic Array
You are viewing a single comment's thread. Return to all comments →
The problem prompt idx = (x XOR lastAnswer) doesn't say that it should be modulo'ed by the size of the array.
Exactly
yea this question is shit