Linked List

Key points:

  1. When dereferencing a ListNode, make sure it's not a null pointer;

  2. Never lose control of the head pointer.

Last updated

Was this helpful?