This repository contains a collection of algorithm functions implemented on Solidity.
You can clone this repository and import the functions you need, or you can also directly import from the repo url in your source code.
git clone https://github.com/0x6775737461766f/solidity-algorithms.git
#ONLINE
import "https://github.com/0x6775737461766f/solidity-algorithms/'Smart Contract you wanna use'.sol"
#LOCAL
import "./{pathToSmartContract}.sol"
# returns a sorted array on memory.
bubbleSort(Array);
#CODE
{copy the library code below the Contract, and call each function};
Sort.bubbleSort(Array);
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.