File tree Expand file tree Collapse file tree 3 files changed +16
-13
lines changed Expand file tree Collapse file tree 3 files changed +16
-13
lines changed Original file line number Diff line number Diff line change 1
- [ js-quicksort] ( http ://aureooms.github.io/js-quicksort)
1
+ [ @ aureooms/ js-quicksort] ( https ://aureooms.github.io/js-quicksort)
2
2
==
3
3
4
- Quicksort algorithm for JavaScript. Parent is
5
- [ aureooms/js-sort] ( https://github.com/aureooms/js-sort ) .
4
+ <img src =" http://web.cs.ucla.edu/~forns/assets/images/winter-2014/cs-32/week-8/sorting-7.PNG " width =" 864 " >
5
+
6
+ Quicksort algorithm for JavaScript.
7
+ See [ docs] ( https://aureooms.github.io/js-quicksort ) .
8
+ Parent is [ @aureooms/js-sort ] ( https://github.com/aureooms/js-sort ) .
6
9
7
10
``` js
8
11
let sort = quicksort .singletco ( partition .hoare ) ;
Original file line number Diff line number Diff line change 26
26
"devDependencies" : {
27
27
"aureooms-js-in-situ-sort-spec" : " ^7.0.0" ,
28
28
"aureooms-js-partition" : " ^8.0.0" ,
29
- "ava" : " ^0.17 .0" ,
30
- "babel-cli" : " ^6.18.0 " ,
31
- "babel-polyfill" : " ^6.16 .0" ,
32
- "babel-preset-latest" : " ^6.16 .0" ,
29
+ "ava" : " ^0.18 .0" ,
30
+ "babel-cli" : " ^6.22.2 " ,
31
+ "babel-polyfill" : " ^6.22 .0" ,
32
+ "babel-preset-latest" : " ^6.22 .0" ,
33
33
"codeclimate-test-reporter" : " ^0.4.0" ,
34
- "coveralls" : " ^2.11.14 " ,
35
- "esdoc" : " ^0.5.0 " ,
36
- "nyc" : " ^10.0.0 "
34
+ "coveralls" : " ^2.11.15 " ,
35
+ "esdoc" : " ^0.5.2 " ,
36
+ "nyc" : " ^10.1.2 "
37
37
},
38
38
"homepage" : " http://aureooms.github.io/js-quicksort" ,
39
39
"keywords" : [
Original file line number Diff line number Diff line change 1
1
import ava from 'ava' ;
2
2
3
- import partition from "aureooms-js-partition" ;
4
- import * as insitusortspec from "aureooms-js-in-situ-sort-spec" ;
3
+ import * as partition from "aureooms-js-partition" ;
4
+ import * as spec from "aureooms-js-in-situ-sort-spec" ;
5
5
6
6
import * as quicksort from '../../src' ;
7
7
8
- insitusortspec . test ( ava , [
8
+ spec . test ( ava , [
9
9
[ "single pivot quicksort (hoare)" , quicksort . single ( partition . hoare ) ] ,
10
10
[ "single pivot quicksort (lomuto)" , quicksort . single ( partition . lomuto ) ] ,
11
11
[ "single pivot quicksort with explicit tail call optimization (hoare)" , quicksort . singletco ( partition . hoare ) ] ,
You can’t perform that action at this time.
0 commit comments