Loading tutorials
%). It covers how a hash function turns a key into an integer and what makes one good or bad. Reducing that integer to a bucket index comes in the next chapter.3 min read%, and the idea of a hash function that turns a key into an integer. Here we cover the step after hashing: turning that integer into a valid position in the array.2 min readhash(key) % size gives a bucket index. It also assumes basic Big-O and Python. Here you will see why two keys sometimes land in the same bucket, and why no clever design removes that possibility.3 min readhash(key) % size selects a bucket index. It also assumes you know that two different keys can land in the same bucket. Here you will see the most direct fix for that: separate chaining.2 min readhash(key) % capacity and with the idea that a bucket is a slot in an array.2 min read