mirror of
https://hub.njuu.cf/TheAlgorithms/Python.git
synced 2023-10-11 13:06:12 +08:00
updated the comment
This commit is contained in:
parent
2290ff9361
commit
4251cf593d
@ -7,7 +7,7 @@ Count the no of pairs in a given array with given sum
|
||||
|
||||
Implementation notes: Using hashing
|
||||
The idea is that we hash the array in a dictionary
|
||||
Then go throught the elemnts of the array
|
||||
Then go through the elements of the array
|
||||
We subtract this with the given sum
|
||||
and check if that is there in the array
|
||||
We also check the edge cases like if there are multiple same elements
|
||||
|
Loading…
x
Reference in New Issue
Block a user