Skip to content

Instantly share code, notes, and snippets.

View subhodi's full-sized avatar
🎯
Focusing

Subhod I subhodi

🎯
Focusing
  • Goa
View GitHub Profile
@subhodi
subhodi / QuickSort.sol
Created December 14, 2017 08:31
Quick sort in Solidity for Ethereum network
pragma solidity ^0.4.18;
contract QuickSort {
function sort(uint[] data) public constant returns(uint[]) {
quickSort(data, int(0), int(data.length - 1));
return data;
}
function quickSort(uint[] memory arr, int left, int right) internal{