Skip to content

Latest commit

 

History

History
34 lines (22 loc) · 861 Bytes

README.md

File metadata and controls

34 lines (22 loc) · 861 Bytes

Solidity Algorithm

This repository contains a collection of algorithm functions implemented on Solidity.

Installation

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

Usage

#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);

Contributing

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.