A simple implementation of binary search (implements divide and conquer)
This implementation breaks the array into smaller pieces rather than moving a cursor
Based on CodeKata02: http://codekata.com/kata/kata02-karate-chop/
- NodeJS 6.x
- run
npm install
to install dependencies
- Execute
> node binarysearcher.js
- Then follow the prompt
-
Execute
> node chop.js