summaryrefslogtreecommitdiff
path: root/go/series/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'go/series/README.md')
-rw-r--r--go/series/README.md38
1 files changed, 38 insertions, 0 deletions
diff --git a/go/series/README.md b/go/series/README.md
new file mode 100644
index 0000000..6474366
--- /dev/null
+++ b/go/series/README.md
@@ -0,0 +1,38 @@
+# Series
+
+Write a program that will take a string of digits and give you all the contiguous substrings of length `n` in that string.
+
+For example, the string "49142" has the following 3-digit series:
+
+- 491
+- 914
+- 142
+
+And the following 4-digit series:
+
+- 4914
+- 9142
+
+And if you ask for a 6-digit series from a 5-digit string, you deserve
+whatever you get.
+
+Note that these series are only required to occupy *adjacent positions*
+in the input; the digits need not be *numerically consecutive*.
+
+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
+
+A subset of the Problem 8 at Project Euler [http://projecteuler.net/problem=8](http://projecteuler.net/problem=8)
+
+## Submitting Incomplete Problems
+It's possible to submit an incomplete solution so you can see how others have completed the exercise.
+