Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在阅读算法课上的笔记(几年前),我发现了这一点:
其中说:假设
h(k) = k mod m,其中 m = 4 且 k = 100,则 h(k) = 4
这是真的?我认为 4 * 25 = 100,因此 h(k) = 0。我错过了什么?
我以为是笔误,但我刚刚检查了最新版本的笔记,它仍然是一样的!