Previous | Next --- Slide 7 of 31
Back to Lecture Thumbnails
toutou

Is there an assumption that the inserted element is always larger than the head?

lament

I do not believe a value is stored at the head. Here, the first node with data in the list is head->next.

afzhang

@toutou: No, but there's a comment that remarks "assume case of inserting before head of list is handled here (to keep slide simple)".