From 19da2f10c6e999c0106b6be8862c3f0bbd68dd44 Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Fri, 26 Aug 2016 04:18:56 +0200 Subject: Sovle pascal triangle --- go/pascals-triangle/README.md | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 go/pascals-triangle/README.md (limited to 'go/pascals-triangle/README.md') 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. + -- cgit v1.2.3