From a3ee9ebf0b534440172c6803979514feb123a192 Mon Sep 17 00:00:00 2001 From: siddwarr Date: Tue, 3 Oct 2023 20:52:30 +0530 Subject: [PATCH] updated return hint --- data_structures/arrays/pairs_with_given_sum.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data_structures/arrays/pairs_with_given_sum.py b/data_structures/arrays/pairs_with_given_sum.py index 928c80523..a5a70935c 100644 --- a/data_structures/arrays/pairs_with_given_sum.py +++ b/data_structures/arrays/pairs_with_given_sum.py @@ -16,7 +16,7 @@ to avoid the same pair getting counted twice """ -def pairs_with_sum(arr, k): +def pairs_with_sum(arr, k) -> int: """ Return the no. of pairs with sum k