You need to sign in or sign up before continuing.×
7 kyu
Make Your Own Hashmap
345austin.norby
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
Similar Kata:
Stats:
Created | Jan 25, 2018 |
Published | Jan 25, 2018 |
Warriors Trained | 745 |
Total Skips | 7 |
Total Code Submissions | 1963 |
Total Times Completed | 345 |
Python Completions | 345 |
Total Stars | 13 |
% of votes with a positive feedback rating | 91% of 108 |
Total "Very Satisfied" Votes | 91 |
Total "Somewhat Satisfied" Votes | 14 |
Total "Not Satisfied" Votes | 3 |
Total Rank Assessments | 7 |
Average Assessed Rank | 7 kyu |
Highest Assessed Rank | 7 kyu |
Lowest Assessed Rank | 7 kyu |