結果 : write algorithm for singly linked list