Add CMakeLists for all datastructs

+ Reorder, refactor comments
This commit is contained in:
2020-07-11 20:55:15 -04:00
parent be91573abc
commit a692a0f631
22 changed files with 168 additions and 50 deletions

View File

@@ -247,7 +247,7 @@ bool CircleDoubleList::insert(int val, Node *&tail)
// Relink the current head to the node after newNode
newNode->next = tail->next;
tail->next->prev = newNode;
// Relink our head and tail nodes, makine newNode the head node
// Relink our head and tail nodes, making newNode the head node
tail->next = newNode;
newNode->prev = tail;
}