mirror of
https://hub.njuu.cf/TheAlgorithms/Python.git
synced 2023-10-11 13:06:12 +08:00
updated return hint
This commit is contained in:
parent
a8cb5526d0
commit
a3ee9ebf0b
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user