AlgoFrames

Predict an anagram's bucket

Standard · Predict the result · about 3 min

This hash adds up the character codes of a string. The word "stop" lands in bucket 6 of a 7-bucket table. What does the code print for "pots"?

Constraints

  • Answer with a number.

Learn the idea first: Hash functions: from key to bucket index, a visual lesson.

More Hash functions: from key to bucket index problems