mirror of
https://github.com/krahets/hello-algo.git
synced 2026-07-15 08:26:06 +00:00
Fix the test case of binary search.
This commit is contained in:
@@ -51,7 +51,7 @@ int binarySearchLCRO(List<int> nums, int target) {
|
||||
/* Driver Code*/
|
||||
void main() {
|
||||
int target = 6;
|
||||
final nums = [1, 3, 6, 8, 12, 15, 23, 67, 70, 92];
|
||||
final nums = [1, 3, 6, 8, 12, 15, 23, 26, 31, 35];
|
||||
|
||||
/* 二分查找 (双闭区间) */
|
||||
int index = binarySearch(nums, target);
|
||||
|
||||
Reference in New Issue
Block a user