結果 : algorithm for traversing a linked list