Skip to content

Commit 68117fe

Browse files
authored
Fix readme, in accordance to the updated tests
This is as described in exercism/problem-specifications#1395 The current README will really confuse non math-savvy students, as it asked to find `a*b*c`, while the tests actually check for the triplets. Change it to asks for the triplet explicitly. Give the answer for N = 1000 as it's also spoiled in the test file ;)
1 parent 2d3f5a8 commit 68117fe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

exercises/pythagorean-triplet/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ For example,
1919
3**2 + 4**2 = 9 + 16 = 25 = 5**2.
2020
```
2121

22-
There exists exactly one Pythagorean triplet for which a + b + c = 1000.
22+
Given a number `N`, find all triplets `[a, b, c]` that satisfy `a + b + c = N`.
2323

24-
Find the product a * b * c.
24+
For example, for `N = 1000`, there is only 1 triplet that satisfies `a + b + c = 1000`, that is: `[200, 375, 425]`
2525

2626
## Rust Installation
2727

0 commit comments

Comments
 (0)