Untitled

Anonymous
Plain Text
05/12/2023 6:37 PM
200 B
23
Indexable
Never
int getSize(LinkedList list) {

    int count = 0;

    LINKEDLIST_goToHead(&list);

    while(!LINKEDLIST_isAtEnd(list)) {
        count++;
        LINKEDLIST_next(&list);
    }

    return count;

}
Editor is loading...