r/C_Programming • u/Significant_Ant9861 • Aug 08 '26
Hash table
I am newbie and a beginner in c language. I would like to learn the hash table for my next semester.
I kindly ask for some help in this matter. I still struggle in the basics even using the ai models.
8
Upvotes
View all comments
Show parent comment
1
u/TheChief275 Aug 10 '26
Yes there is; you can use the same shifting approach that is often used to avoid tombstones, but for priority purposes instead. But the main point was that I wouldn't suggest your hash table variant to someone who wants to implement their first hash table. Open addressing is way more suited to that, as it's essentially just a fancy array on the data structure side