fork download
  1. Rnd = x=> 48271*x;
  2. QSort = X => X.length<=1? X :[ ...QSort(X.filter((x,i)=> i>0 && x<X[0])), X[0], ...QSort(X.filter((x,i)=> i>0 && x>=X[0]))];
  3.  
  4. x=1; X=[];
  5. for(n=0;n<16;n++) { x = Rnd(x); X.push(x%100); }
  6.  
  7. console.log("in: "+X + "\nout: "+QSort(X));
Success #stdin #stdout 0.06s 30080KB
stdin
Standard input is empty
stdout
in:  71,41,11,44,84,96,12,60,16,60,36,4,0,12,88,52
out: 0,4,11,12,12,16,36,41,44,52,60,60,71,84,88,96