Skip to content
This repository was archived by the owner on Dec 12, 2023. It is now read-only.

Conversation

roitt
Copy link
Contributor

@roitt roitt commented Sep 22, 2014

The existing solution was ignoring the duplicates in the array.
For example:
f(8, [3, 4, 5, 4, 4]) //Output: [ [3, 5], [4, 4]]

No changes have to made to the existing methods. But two new methods have been added which take duplicates into consideration.
For Example:
f(8, [3, 4, 5, 4, 4]) //Output: [ [3, 5], [4, 4], [4, 4], [4, 4]]

blakeembrey added a commit that referenced this pull request Sep 22, 2014
Solutions considering duplicates in the array.
@blakeembrey blakeembrey merged commit fc8a204 into blakeembrey:master Sep 22, 2014
@roitt roitt deleted the array-pair-sum-change branch September 22, 2014 23:49
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants