Mark As Completed Discussion

Try this exercise. Click the correct answer from the options.

What does the print(Node head) function do in previous code?

Click the option that best answers the question.

  • Prints all nodes of the linked list
  • Prints all nodes of the linked list in reverse order
  • Prints alternate nodes of the linked list
  • Prints alternate nodes of the linked list in reverse order