1. You are required to complete the code of our Hashmap class. Please watch the question video carefully. The theoretical details of required functionality is explained in detail there. Implement the functions to achieve what is explained in the theoretical discussion in question video. 2. Input and Output is managed for you.
Input Format
Input is managed for you
Output Format
Output is managed for you
Constraints
None
Notice
Try First, Check Solution later
1. You should first read the question and watch the question video.2. Think of a solution approach, then try and submit the question on editor tab.3. We strongly advise you to watch the solution video for prescribed approach.Example
Input
put India 135 put Aus 5 put Canada 3 display get China remove Aus get Aus containsKey US put US 10 put UK 20 remove US containsKey US put Pak 80 put China 200 display put Utopia 0 display put Nigeria 3 display put India 138 display put Sweden 1 display put finland 20 display quit
Output
Display Begins Bucket0 . Bucket1 . Bucket2 Canada@3 . Bucket3 India@135 Aus@5 . Display Ends null 5 null false 10 false Display Begins Bucket0 . Bucket1 . Bucket2 Canada@3 UK@20 Pak@80 . Bucket3 India@135 China@200 . Display Ends Display Begins Bucket0 Utopia@0 . Bucket1 . Bucket2 Canada@3 UK@20 Pak@80 . Bucket3 India@135 China@200 . Display Ends Display Begins Bucket0 Utopia@0 . Bucket1 . Bucket2 Canada@3 UK@20 Pak@80 . Bucket3 India@135 China@200 Nigeria@3 . Display Ends Display Begins Bucket0 Utopia@0 . Bucket1 . Bucket2 Canada@3 UK@20 Pak@80 . Bucket3 India@138 China@200 Nigeria@3 . Display Ends Display Begins Bucket0 Utopia@0 Sweden@1 . Bucket1 . Bucket2 Canada@3 UK@20 Pak@80 . Bucket3 India@138 China@200 Nigeria@3 . Display Ends Display Begins Bucket0 Utopia@0 . Bucket1 . Bucket2 Pak@80 finland@20 . Bucket3 . Bucket4 Sweden@1 . Bucket5 . Bucket6 Canada@3 UK@20 . Bucket7 India@138 China@200 Nigeria@3 . Display Ends