summaryrefslogtreecommitdiff
path: root/go/pascals-triangle/README.md
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2016-08-26 04:18:56 +0200
committerDimitri Sokolyuk <demon@dim13.org>2016-08-26 04:18:56 +0200
commit19da2f10c6e999c0106b6be8862c3f0bbd68dd44 (patch)
tree6a49e4cc027eb42ebeca9271ac5fe1dee2bf9f95 /go/pascals-triangle/README.md
parent0162fa190cdf0a3b7b5ce27855b7b67fd26278aa (diff)
Sovle pascal triangle
Diffstat (limited to 'go/pascals-triangle/README.md')
-rw-r--r--go/pascals-triangle/README.md33
1 files changed, 33 insertions, 0 deletions
diff --git a/go/pascals-triangle/README.md b/go/pascals-triangle/README.md
new file mode 100644
index 0000000..bf36935
--- /dev/null
+++ b/go/pascals-triangle/README.md
@@ -0,0 +1,33 @@
+# Pascals Triangle
+
+Write a program that computes Pascal's triangle up to a given number of rows.
+
+In Pascal's Triangle each number is computed by adding the numbers to
+the right and left of the current position in the previous row.
+
+```plain
+ 1
+ 1 1
+ 1 2 1
+ 1 3 3 1
+1 4 6 4 1
+# ... etc
+```
+
+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
+
+Pascal's Triangle at Wolfram Math World [http://mathworld.wolfram.com/PascalsTriangle.html](http://mathworld.wolfram.com/PascalsTriangle.html)
+
+## Submitting Incomplete Problems
+It's possible to submit an incomplete solution so you can see how others have completed the exercise.
+