From c6296280a0b0a030fb58c5645215b32136e57161 Mon Sep 17 00:00:00 2001 From: Bryan Williams Date: Fri, 6 Apr 2018 22:12:14 -0400 Subject: [PATCH] Clarified instructions for Pairwise algorithm (#17013) * Clarified instructions for Pairwise algorithm Added an example to further clarify the directions in the "Pairwise" algorithm, per issue #16800 https://github.com/freeCodeCamp/freeCodeCamp/issues/16800 * Change "for example" to "for instance" --- .../coding-interview-algorithm-questions.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/challenges/08-coding-interview-questions-and-take-home-assignments/coding-interview-algorithm-questions.json b/challenges/08-coding-interview-questions-and-take-home-assignments/coding-interview-algorithm-questions.json index f780e36266..655f64837b 100644 --- a/challenges/08-coding-interview-questions-and-take-home-assignments/coding-interview-algorithm-questions.json +++ b/challenges/08-coding-interview-questions-and-take-home-assignments/coding-interview-algorithm-questions.json @@ -209,7 +209,7 @@ "title": "Pairwise", "description": [ "Given an array arr, find element pairs whose sum equal the second argument arg and return the sum of their indices.", - "You may use multiple pairs that have the same numeric elements but different indices. Each pair should use the lowest possible available indices. Once an element has been used it cannot be reused to pair with another element.", + "You may use multiple pairs that have the same numeric elements but different indices. Each pair should use the lowest possible available indices. Once an element has been used it cannot be reused to pair with another element. For instance, pairwise([1, 1, 2], 3) creates a pair [2, 1] using the 1 at indice 0 rather than the 1 at indice 1, because 0+2 < 1+2.", "For example pairwise([7, 9, 11, 13, 15], 20) returns 6. The pairs that sum to 20 are [7, 13] and [9, 11]. We can then write out the array with their indices and values.", "
Index01234
Value79111315
", "Below we'll take their corresponding indices and add them.",