7 kyu

Make Your Own Hashmap

Description:

This function will take in a list of strings and put them into a hashmap. A hashmap is a quick way to store and lookup items you might need based on the 'hash' of the item (https://en.wikipedia.org/wiki/Hash_table). In this example, we're going to create hashes based on the sum of the characters. Each charater has a decimal value (ascii value) and the sum of those decimal values will be the hash.

Your goal is to take the list of strings, hash them, and return a dictionary with hashes as keys and a list of strings, with that hash, as values.

Strings
Fundamentals

More By Author:

Check out these other kata created by austin.norby

Stats:

CreatedJan 25, 2018
PublishedJan 25, 2018
Warriors Trained745
Total Skips7
Total Code Submissions1963
Total Times Completed345
Python Completions345
Total Stars13
% of votes with a positive feedback rating91% of 108
Total "Very Satisfied" Votes91
Total "Somewhat Satisfied" Votes14
Total "Not Satisfied" Votes3
Total Rank Assessments7
Average Assessed Rank
7 kyu
Highest Assessed Rank
7 kyu
Lowest Assessed Rank
7 kyu
Ad
Contributors
  • austin.norby Avatar
  • Avanta Avatar
  • saudiGuy Avatar
Ad