forked fromwebysther/CircularArray
- Notifications
You must be signed in to change notification settings - Fork0
⭕ Fixed Circular Array Data Structure
License
NotificationsYou must be signed in to change notification settings
TheCocoTeam/CircularArray
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
| Image:Cburnett |
FromWikipedia:
Acircular buffer,circular queue, cyclic buffer or ring buffer is a data structure that uses a single,fixed-size buffer as if itwere connected end-to-end.This structure lends itself easily to buffering data streams.
Via Composer
$ composer require php-snippets/circular-array
You can create an array where an interaction occurs indefinitely:
usePHPSnippets\DataStructures\CircularArray;$circular = Circular::fromArray(array(1,2,3,4));// this foreach never ends, after 4 back to 1.foreach($circularas$value){echo$value;}
The following versions of PHP are supported by this version.
- PHP >= 5.3
$ vendor/bin/phpunit
Please seeCONTRIBUTING andCONDUCT for details.
MIT. Please seeLicense File for more information.
About
⭕ Fixed Circular Array Data Structure
Resources
License
Contributing
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
No packages published
Languages
- PHP100.0%