Added Circular Linked List

This commit is contained in:
Alvin Philips 2021-10-25 15:04:21 +05:30
parent 3dfb0b1c6a
commit bd37c739b4

View File

@ -48,6 +48,18 @@ struct Node {
}
};
class CircularLinkedList {
private:
Node* root; ///< Pointer to the root node
Node* end; ///< Pointer to the last node
public:
CircularLinkedList() {
root = nullptr;
end = nullptr;
}
};
} // namespace circular_linked_list
} // namespace operations_on_datastructures