Do I need to learn polynomial hash and string hashing to reach expert?
Do I?
Full text and comments »
Need help in a problem
Link : Problem
Can someone please explain(in simple words) why we need to take only numbers that are coprime with n, I read the editorial but still can't fully understand the proof that why a non coprime number will give prod%n != 1
Leetcode Weekly 498 Solution Discussion