Contains all common algorithm theories and implementation in various languages like C, Ruby, etc
I wish to include as more algoritms and DataStructure implementations as possible. I need your aid because it should be a community effor. Anybody can be benifited from this repository.
Contains common algorithms and DS implementation in various languages like C, Ruby, etc.
This library uses CSpec
testing Framework to write testcases. The CSpec is a new concept, we are planning to
take this project forward and extract out as a separate library. For simpler assertion we are using assert.h
library though.
For implementations libraries In your test.c
// If your file is at /sorting/algo_spec.c then
// include `cspec.c` if you wish to assert using methods defined in that library
#include '../../cspec/cspec.c'
// assuming like algorithms/cspec/cspec.c
And finally
# .out for linux users, .exe for windows users
$ gcc -o test.out test_spec.c
# To execute
$ ./test.out
You are welcome to ask questions and create pull requests. Feel free to create pull requests for the following:-
See this MIT License
Copyright Shiva Bhusal(c) 2017