Skip to content

Latest commit

 

History

History
22 lines (13 loc) · 509 Bytes

File metadata and controls

22 lines (13 loc) · 509 Bytes

Linked List Traversal

Read this in other languages: Русский

The task is to traverse the given linked list in straight order.

For example for the following linked list:

Singly linked list

The order of traversal should be:

12 → 99 → 37

The time complexity is O(n) because we visit every node only once.

Reference