algorithm/binSearch: use math range
This commit is contained in:
@@ -19,7 +19,7 @@ export function binSearch(begin: number, end: number, beforeHalf: boolean[]): [n
|
||||
}
|
||||
|
||||
const half = gHalf();
|
||||
console.log(`Checking range: [${begin}, ${end}], ${end - begin} objects, mid ${half}`);
|
||||
console.log(`Checking range: [${begin}, ${end}), ${end - begin} objects, mid ${half}`);
|
||||
|
||||
return [begin, half, end];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user