bingen
v1.0.0
Published
Binary search generator
Downloads
1
Maintainers
Readme
bingen
Binary search generator
var bingen = require('bingen');
bingy = new bingen(0, 100); /* provide inclusive range */
bingy.mid();
>> 50
bingy.next('left');
>> 25
bingy.next('right');
>> 37