You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use the array hash to calculate the time one element appears. For instance, hash[i] means the time i appears. And when hash[i] > len / 2, we can say that i is the answer.