Shard Detail

algorithms-with-crystal v0.0.1

Common programming algorithms written with Crystal
crystal algorithms

Install & Use

Add the following code to your project's shard.yml under:

dependencies to use in production
- OR -
development_dependencies to use in development


algorithms-with-crystal:
  github: yefremov/algorithms-with-crystal

Readme

algorithms-with-crystal Build Status

This is a collection of different algorithms written in Crystal. The purpose of this package is to define basic algorithms in a concise, but readable form. However, no (pre)mature optimizations should be expected here and code should never be used in production.

Contents

Iterative

  • coprime
  • maxsub
  • isprime

Recursive

  • factorial
  • fibonacci
  • gcd

Search

  • binary
  • linear

Sort

  • bubble
  • insertion
  • selection
  • merge
  • radix

Running tests

$ make test

License

MIT