r/C_Programming • • 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

29 comments sorted by

View all comments

Show parent comment

2

u/chrism239 Aug 08 '26

" A linked list is essentially an array, containing a bunch of linked lists."

Ouch!

1

u/TheChief275 Aug 08 '26

Like what do they even mean by that? Are they trying to describe a linked list in what it roughly represents? Yes, it could be used in the same situations as an array but that sure as hell isn't a good idea, and it sure as hell doesn't make it an array

4

u/chrism239 Aug 08 '26

Maybe they meant “A hash table is essentially….”

1

u/TheChief275 Aug 08 '26

Oh that must be it! Couldn't have figure that out myself

0

u/[deleted] Aug 08 '26

[deleted] — view deleted comment

2

u/TheChief275 Aug 08 '26

Just use the term list; beginners probably know it from Python or C#. Then describe how actually, that list is more like an array while a classical list is just a straight 1-dimensional tree, with each node being the parent of the next.

Simple enough