Is this right new_node -> next = hashtable[hash];
? new_node
is pointing to the head of the list and then hashtable[hash] -> next = new_node;
head of the list is pointing to new_node. As @Blauelf said, pointer loop.
DinoCoderSaurus
- 28.6k
- 2
- 12
- 31