LinearList/LoopSingleLinkList.c
void printList(Node* L) {
    Node* node = L->next;
    while (node != L) {
        printf("%d->", node->data);
        node = node->next;
    }
    printf("NULL\n");
}
/**
 * print all items in a link list
 * @param L the head pointer of link list
 */
print all items in a link list
@param L the head pointer of link list
print all items in a link list @param L the head pointer of link list
void printList(Node* L) {
    Node* node = L->next;
    while (node != L) {
        printf("%d->", node->data);
        node = node->next;
    }
    printf("NULL\n");
}
void printList ( Node * L ) { Node * node = L -> next ; while ( node != L ) { printf ( " " , node -> data ) ; node = node -> next ; } printf ( " \n " ) ; }
print all items in a link list
 @param L the head pointer of link list
print all items in a link list @param L the head pointer of link list