Skip to main content
2 of 2
corrected answer
DinoCoderSaurus
  • 28.6k
  • 2
  • 12
  • 31

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