Skip to content

A collection of sorting and search algorithms, implemented in a Solidity Smart Contract

Notifications You must be signed in to change notification settings

0x6775737461766f/solidity-algorithms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A collection of sorting and search algorithms, implemented in a Solidity Smart Contract

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published