-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Open
Description
This is about Array Pair Sum.ipynb
in Array Sequence Interview Questions - PRACTICE
. This notebook is part of lectures 53 and 54.
Though the notebook is located in the PRACTICE folder, I want to point out that the function returns an incorrect result for pair_sum([1,3,2,2],3)
.
- The result of
pair_sum([1,3,2,2],3)
is2
. - The result of
pair_sum([1,3,2,2],3)
should be1
since(1,2)
appears twice ((1,2)
,(2,1)
) but unique sums are searched for.
Maybe this should be added to the list of test cases.
Just to make sure all is clear and nobody gets the wrong idea while solving this problem.
Metadata
Metadata
Assignees
Labels
No labels