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

Commit 38ed64b

Browse files
committed
making example cases same as tests
In particular, the second case had different results from those expected in the tests. https://github.com/blakeembrey/code-problems/blob/master/tests/javascript/array-pair-sum.js
1 parent ca85ac8 commit 38ed64b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

problems/array-pair-sum/Readme.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@ Given an integer array, output all distinct pairs that sum up to a specific valu
77
## Example
88

99
```
10-
f(10, [3, 4, 5, 6, 7]) // [ [6, 4], [7, 3] ]
11-
f(8, [3, 4, 5, 4, 4]) // [ [3, 5], [4, 4] ]
10+
f(10, [3, 4, 5, 6, 7]) // [ [4, 6], [3, 7] ]
11+
f(8, [3, 4, 5, 4, 4]) // [ [3, 5], [4, 4], [4, 4], [4, 4] ]
12+
f(10, [3, 5, 6, 8]) // []
1213
```
1314

1415
## Source

0 commit comments

Comments
 (0)