This repository contains custom implementations of various data structures in Ruby. The project is developed and tested on a Unix machine.
To get started, clone the repository:
git clone https://github.com/Skipper-116/ds-ruby.git
cd ds-ruby
Each data structure is implemented in its own Ruby file within the lib
directory. You can require these files in your Ruby scripts to use the data structures.
The following data structures are implemented in this repository:
- Linked List
- Stack
- Queue
- Priority Queue
- Dynamic Array
- Binary Tree
- Hash Table
This project uses RSpec for testing. To run the tests, execute the following command:
rspec
Make sure you have RSpec installed. If not, you can install it using:
gem install rspec
Contributions are welcome! Please fork the repository and create a pull request with your changes.
This project is licensed under the MIT License. See the LICENSE file for details.