This is a simple library that contains different data structures written in C.
- Clone the repository using the
git clone <repository link>
- Run the make file using the
make all
command - Include any data structure to your project using the appropriate header files
- Create the data structures using the appropriate constructors, ex:-
Dictionary dict = dictionary_constructor(COMPARE_STR_KEYS);
- Compile your project as follows
gcc <your files here> libdatastructures.a
- Enjoy!
- Linked List
- Queue
- Binary Search Tree
- Dictionary
A default compare function is provided (COMPARE_STR_KEYS). But feel free to write your own compare functions to match your usecase.
The library is extremely primitive and only appropriate for educational projects and not for any commercial use.
Feel free to provide feedback on what I can improve and issues you faced 🙌🏽.