jmportilla / Python-for-Algorithms--Data-Structures--and-Interviews

Files for Udemy Course on Algorithms and Data Structures
2.54k stars 2.37k forks source link

Array Pair Sum #8

Open normoes opened 6 years ago

normoes commented 6 years ago

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).

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.

bobvo23 commented 4 years ago

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.

normoes commented 4 years ago

Ok. Thanks.