Linked List
Now I am reading things about the linked list.
List contains Node
Head,Tail which are also Node
And the length of list.
Node has a record of the next Node, it will point to the next element in the linked list.
So, use while loop, like while(node.next!=null), this method will traverse the entire list.
List contains Node
Head,Tail which are also Node
And the length of list.
Node has a record of the next Node, it will point to the next element in the linked list.
So, use while loop, like while(node.next!=null), this method will traverse the entire list.
评论