Skip to content

Latest commit

 

History

History
1 lines (1 loc) · 180 Bytes

README.md

File metadata and controls

1 lines (1 loc) · 180 Bytes

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.