This repository contains implementations of various data structures in C++. Each data structure is implemented in a separate header file and can be easily included in your projects.
- LinkedList: Implementation of a singly linked list.
- Stack: Implementation of a stack using an array.
- Queue: Implementation of a queue using a circular array.
- BinarySearchTree: Implementation of a binary search tree.
- Clone the repository:
git clone https://github.com/kasettakorn/data-structure-cpp.git
arduino Copy code
- Include the desired header file in your C++ project:
#include "LinkedList.h"
#include "Stack.h"
#include "Queue.h"
#include "BinarySearchTree.h"
#include "Heap.h"
- Use the data structures in your code.
Feel free to contribute by adding more data structures or improving the existing ones. Please follow the existing code style and add appropriate documentation/comments.
This project is licensed under the MIT License - see the LICENSE file for details.