Telecharger Cours

Algorithmen und Datenstrukturen

head = NULL;. 22. } 23. 24 int size() { return n; }. 25. 26 int elementAt(int i) {. 27. Node* h = head;. 28 while (i-- > 1). 29 h = h->next;. 30 return h->data;.



Download