🎚 Window-sliding insertion algorithm in JavaScript
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

7 lines
179 B

6 years ago
const Slider = require('.');
const a = [ 0, 1, 2, 3, 4, 5 ];
const b = [ 2, 3, 4 ];
const w = new Slider({ size: 3 , predicate: (a, b) => a === b });
6 years ago
console.log(w.slide(a, b));