+ 2

Solve this issue?

In this code I wanted name of a person and his age in hash table, with length of name as key. Here I wanted to chain the names when their lengths are same. The issue is I think chaining is not happening, when I remove the first comment in the code, it is giving compile time error. Let me know what wrong I have done. Is this a right way to demonstrate the Hash table data structure? https://code.sololearn.com/cST2w3cZ5P13/?ref=app

12th Apr 2021, 2:18 AM
rajshekhar y dodamani
rajshekhar y dodamani - avatar
4 Réponses
+ 3
Thank you Sucheta , when mistakes are solved immediately, then they start eating out, Thanks for answering
12th Apr 2021, 8:16 AM
rajshekhar y dodamani
rajshekhar y dodamani - avatar
+ 2
Please anyone answer it, if you know it?
12th Apr 2021, 7:11 AM
rajshekhar y dodamani
rajshekhar y dodamani - avatar
+ 1
Yeah, lol it is runtime exception,
12th Apr 2021, 8:14 AM
rajshekhar y dodamani
rajshekhar y dodamani - avatar