Skip to content

Array Pair Sum #8

@normoes

Description

@normoes

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) is 2.
  • The result of pair_sum([1,3,2,2],3) should be 1 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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions