summaryrefslogtreecommitdiff
path: root/go/pythagorean-triplet/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'go/pythagorean-triplet/README.md')
-rw-r--r--go/pythagorean-triplet/README.md34
1 files changed, 34 insertions, 0 deletions
diff --git a/go/pythagorean-triplet/README.md b/go/pythagorean-triplet/README.md
new file mode 100644
index 0000000..861ffc7
--- /dev/null
+++ b/go/pythagorean-triplet/README.md
@@ -0,0 +1,34 @@
+# Pythagorean Triplet
+
+There exists exactly one Pythagorean triplet for which a + b + c = 1000. Find the product a * b * c.
+
+A Pythagorean triplet is a set of three natural numbers, {a, b, c}, for
+which,
+
+```
+a**2 + b**2 = c**2
+```
+
+For example,
+
+```
+3**2 + 4**2 = 9 + 16 = 25 = 5**2.
+```
+
+To run the tests simply run the command `go test` in the exercise directory.
+
+If the test suite contains benchmarks, you can run these with the `-bench`
+flag:
+
+ go test -bench .
+
+For more detailed info about the Go track see the [help
+page](http://exercism.io/languages/go).
+
+## Source
+
+Problem 9 at Project Euler [http://projecteuler.net/problem=9](http://projecteuler.net/problem=9)
+
+## Submitting Incomplete Problems
+It's possible to submit an incomplete solution so you can see how others have completed the exercise.
+