You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pls ignore the Practice folder, check for the solution in the Solutions folder.
he used min, max functions to make sure that there is only unique pair in the set.
This is about
Array Pair Sum.ipynb
inArray 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)
.pair_sum([1,3,2,2],3)
is2
.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.
The text was updated successfully, but these errors were encountered: