Question: 1. (5-10 points) Class HashMap Here is a checklist for helping you complete the class HashMap library code: Write a class HashMap for storing names
1. (5-10 points) Class HashMap Here is a checklist for helping you complete the class HashMap library code: Write a class HashMap for storing names and scores. The keys are names with less than 10 letters, and values are integer scores. Your function should have public methods: add (name, score), remove (name), and get (name) The physical size of this hash map is 1000. Use your class LinkedList as the collision resolution by chaining. Use base 27 (26 letters & space) encoding for the keys. Use the multiplication method for the hash function, the A=(5-1)/2 = 0.6180339887... Write some testing code in the main function You can rename any class/members/methods/variables to meet your coding style
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
