Skip to main content
Post Undeleted by DinoCoderSaurus
corrected answer
Source Link
DinoCoderSaurus
  • 28.6k
  • 2
  • 12
  • 31

Is this right new_node -> next = hashtable[hash]; right? Assuming hashtable new_node is an arraypointing to the head of ints,the list and new_node-> next is a node pointer, then something's amiss.

Don't know if this is roothashtable[hash] -> next = new_node; head of the problemlist is pointing to new_node. As @Blauelf said, but it jumped off the pagepointer loop.

Is this new_node -> next = hashtable[hash]; right? Assuming hashtable is an array of ints, and new_node-> next is a node pointer, then something's amiss.

Don't know if this is root of the problem, but it jumped off the page.

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.

Post Deleted by DinoCoderSaurus
Post Undeleted by DinoCoderSaurus
Post Deleted by DinoCoderSaurus
Source Link
DinoCoderSaurus
  • 28.6k
  • 2
  • 12
  • 31

Is this new_node -> next = hashtable[hash]; right? Assuming hashtable is an array of ints, and new_node-> next is a node pointer, then something's amiss.

Don't know if this is root of the problem, but it jumped off the page.