From 45bd0f4059787d72f0ab7ec182868653e9e98072 Mon Sep 17 00:00:00 2001 From: Lucas Date: Sat, 7 Nov 2015 12:21:03 -0800 Subject: [PATCH] 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 --- problems/array-pair-sum/Readme.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/problems/array-pair-sum/Readme.md b/problems/array-pair-sum/Readme.md index 3c2cc2b..0e7bd24 100644 --- a/problems/array-pair-sum/Readme.md +++ b/problems/array-pair-sum/Readme.md @@ -7,8 +7,9 @@ Given an integer array, output all distinct pairs that sum up to a specific valu ## Example ``` -f(10, [3, 4, 5, 6, 7]) // [ [6, 4], [7, 3] ] -f(8, [3, 4, 5, 4, 4]) // [ [3, 5], [4, 4] ] +f(10, [3, 4, 5, 6, 7]) // [ [4, 6], [3, 7] ] +f(8, [3, 4, 5, 4, 4]) // [ [3, 5], [4, 4], [4, 4], [4, 4] ] +f(10, [3, 5, 6, 8]) // [] ``` ## Source