From 73cc2f3b3068d39293cff78e533f28155cd89704 Mon Sep 17 00:00:00 2001 From: David Kinzer Date: Mon, 11 Sep 2017 10:08:07 -0400 Subject: [PATCH] Clarify palindrome product exercise requirements REF #305 It's not clear from the current examples what the requirements of this exercise are. In fact, a furtive glance is more likely to cause confusion than give clarity. In my opinion, this is because for the first example the solution lies within the range of the list of factors, giving on a first impression that we are looking for products that lie within this range. I think that by listing out the entire list of products (which is small in the case of the range of 1..9) we make it more clear that we are considering all the results. --- exercises/palindrome-products/README.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/exercises/palindrome-products/README.md b/exercises/palindrome-products/README.md index 64aeb9127c..1477872b23 100644 --- a/exercises/palindrome-products/README.md +++ b/exercises/palindrome-products/README.md @@ -23,8 +23,11 @@ palindromic product within that range, along with all of it's factors. Given the range `[1, 9]` (both inclusive)... -The smallest product is `1`. It's factors are `(1, 1)`. -The largest product is `9`. It's factors are `(1, 9)`, `(3, 3)`, and `(9, 1)`. +And given the list of all possible products within this range: +`[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 14, 16, 18, 15, 21, 24, 27, 20, 28, 32, 36, 25, 30, 35, 40, 45, 42, 48, 54, 49, 56, 63, 64, 72, 81]` + +The smallest palindrome product is `1`. It's factors are `(1, 1)`. +The largest palindrome product is `9`. It's factors are `(1, 9)`, `(3, 3)`, and `(9, 1)`. ## Example 2