Thursday, May 2, 2024

📑 Reversed Linked Lists

📑 Task

1) How will the second row printed by the program differ from the 1st and 3rd?
2) Can you write the reverse() method in any other way?

📑 Answer

1) In the 2nd line the linked list is printed in reverse order
This is additionally indicated by a symbol between the list elements
2)

No comments:

Post a Comment