eloquentcoder/datastructures-php

A simple php package with all of the popular data structures and their corresponding methods and propertieable

1.0.0 2022-03-06 13:46 UTC

This package is auto-updated.

Last update: 2024-10-08 04:52:11 UTC


README

Popular Data structures written in php. Will be updated regularly to include more data structures that you can include in your php projects.

How to install

To install this package run

composer require eloquentcoder/datastructures-php

The run

composer install

Usage

To use the singlylinkedlist, create an object of singlylinkedList like this;

$linkedList = new SinglyLinkedList();

then you can call the insert method, append method and the deleteValue method to perform insertions, appending and deletion of values;

$linkedList->insert($data);
$linkedList->append($data);
$linkedList->delete($data);