q
Size: a a a
q
В
q
void addElement(node** headRef, int newValue) {
node* tempNode = new node();
tempNode->value = newValue;
tempNode->prevPointer = nullptr;
tempNode->nextPointer = (*headRef);
if((*headRef) != nullptr) {
(*headRef)->prevPointer = tempNode ;
}
(*headRef) = tempNode;
}
q
БЗ
A
A
БЗ
БЗ
БЗ
A
A
A
A
БЗ
БЗ
ДЦ
A
В