write-a-hash-table icon indicating copy to clipboard operation
write-a-hash-table copied to clipboard

✏️ Learn how to write a hash table in C

Results 27 write-a-hash-table issues
Sort by recently updated
recently updated
newest added

Say A and B collide at `attempt = 0`. If we do the following * `insert("A", )` * `insert("B", )` * `delete("A")` * `insert("B", )` The second B will be...

In the ht_get_hash function the case hash_b = 0 is well handled by adding one and avoiding infinit cycling with same hash value. However, there is another case that causes...

This is a C++ code as per the requirements of the README file.

I am not experienced C coder, and the lack of full code examples makes it really hard to check whether I am making a mistake or you guys simply did...

This PR fixes a typo in chapter 5: `we can fix this my modifying` becomes `we can fix this by modifying`. Cheers

* Considering performance, it is best to put the mod operation out of the loop in hash function, although the output is the same. * The output of `hash("cat", 163,...

Hi, jamesroutley, I was very shocked when I finished reading your article, you wrote really well. so I translated it into Chinese so that more chinese friends can read it.