From 64a5cac70ac45cee904d1d3cd9629b58aa1c712c Mon Sep 17 00:00:00 2001 From: Yingchi Long Date: Sun, 16 Jun 2024 02:44:34 +0800 Subject: [PATCH] algorithm/binSearch: use math range --- algorithm.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/algorithm.ts b/algorithm.ts index 9e89b8a..67504b9 100644 --- a/algorithm.ts +++ b/algorithm.ts @@ -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]; }