From 21f7b64c496633e18f77d7b7973dcfa0b3305aa6 Mon Sep 17 00:00:00 2001 From: "jeevaramanthan.m" Date: Mon, 9 Oct 2023 10:57:17 +0530 Subject: [PATCH] leetcode problem --- data_structures/arrays/search_range.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data_structures/arrays/search_range.py b/data_structures/arrays/search_range.py index b393b8d08..2237756c9 100644 --- a/data_structures/arrays/search_range.py +++ b/data_structures/arrays/search_range.py @@ -27,7 +27,7 @@ def search_range(nums: list[int], target: int) -> list[int]: [1, 1] """ - def binary_search(nums:list, target:int, left:bool) -> list[int]: + def binary_search(nums:list, target:int, left:bool) -> int: """ >>> binary_search([1, 2, 3, 4, 5], 3, leftmost=True) 2