
Security News
Astral Launches pyx: A Python-Native Package Registry
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.
DataStructures101 is a simple gem that groups several implementations of common data structures usually taught in Computer Science courses. The overall goal of the gem is to provide easy to use functionality (trying to match the behavior of existing structures in Ruby) while providing the user with a framework to test and compare their implementations against.
Add this line to your application's Gemfile:
gem 'data_structures_101'
And then execute:
$ bundle
Or install it yourself as:
$ gem install data_structures_101
require 'data_structures_101'
To create a LinkedList
list = DataStructures101::LinkedList.new
To create a hash table using separate chaining strategy:
hash = DataStructures101::ChainedHashTable.new
To create a min heap Heap object
heap = DataStructures101::Heap.new(2,3,1, -10, min_heap: true)
The documentation lives at the github pages. For the nitty gritty details of the implementation go to http://www.rubydoc.info/gems/data_structures_101.
You can also go through several posts on https://bitsofknowledge.net where I have discussed the implementations.
In lieu of a formal styleguide, take care to maintain the existing coding style. Add specs for any new or changed functionality and tests it using RSpec.
Bug reports and pull requests are welcome on GitHub at https://github.com/renehernandez/data_structures_101.
The gem is available as open source under the terms of the MIT License.
FAQs
Unknown package
We found that data_structures_101 demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.
Security News
The Latio podcast explores how static and runtime reachability help teams prioritize exploitable vulnerabilities and streamline AppSec workflows.
Security News
The latest Opengrep releases add Apex scanning, precision rule tuning, and performance gains for open source static code analysis.