Created
August 22, 2015 13:56
-
-
Save lekkas/d6a77ae22c78e476656e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var mergesort = require('./src/sorting/mergesort.js').mergeSort; | |
var args = process.argv.slice(2); | |
if (args.length === 0) | |
return 1; | |
var size = parseInt(args[0]); | |
var a = []; | |
for (var i = 0; i < size; i++) | |
a.push(Math.floor(Math.random() * 100)); | |
mergesort(a); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment