You are viewing a single comment's thread. Return to all comments →
I have the same behaviour in javascript. My success test is the 10th one.
The problem is seq calculation returns a value much bigger than N, the actual length of seqList.
The solution is to add the paranthesis on xor calculation ( a ^ b) % c
Seems like cookies are disabled on this browser, please enable them to open this website
Dynamic Array
You are viewing a single comment's thread. Return to all comments →
I have the same behaviour in javascript. My success test is the 10th one.
The problem is seq calculation returns a value much bigger than N, the actual length of seqList.
The solution is to add the paranthesis on xor calculation ( a ^ b) % c