aboutsummaryrefslogtreecommitdiff
path: root/rust/sublist/README.md
diff options
context:
space:
mode:
authorFederico Igne <git@federicoigne.com>2022-07-13 11:31:40 +0100
committerFederico Igne <git@federicoigne.com>2022-07-13 11:31:40 +0100
commit17bf45b273913a24a72caa964ee16a4fe84c6ec6 (patch)
tree32346bc91982a1f14eaee0f5ff80bd6043d9dcee /rust/sublist/README.md
parent438d66b1783918c18d1df76c419e31cc98f5fb85 (diff)
downloadexercism-17bf45b273913a24a72caa964ee16a4fe84c6ec6.tar.gz
exercism-17bf45b273913a24a72caa964ee16a4fe84c6ec6.zip
[rust] Sublist
Diffstat (limited to 'rust/sublist/README.md')
-rw-r--r--rust/sublist/README.md49
1 files changed, 49 insertions, 0 deletions
diff --git a/rust/sublist/README.md b/rust/sublist/README.md
new file mode 100644
index 0000000..2c905a4
--- /dev/null
+++ b/rust/sublist/README.md
@@ -0,0 +1,49 @@
1# Sublist
2
3Welcome to Sublist on Exercism's Rust Track.
4If you need help running the tests or submitting your code, check out `HELP.md`.
5
6## Instructions
7
8Given two lists determine if the first list is contained within the second
9list, if the second list is contained within the first list, if both lists are
10contained within each other or if none of these are true.
11
12Specifically, a list A is a sublist of list B if by dropping 0 or more elements
13from the front of B and 0 or more elements from the back of B you get a list
14that's completely equal to A.
15
16Examples:
17
18 * A = [1, 2, 3], B = [1, 2, 3, 4, 5], A is a sublist of B
19 * A = [3, 4, 5], B = [1, 2, 3, 4, 5], A is a sublist of B
20 * A = [3, 4], B = [1, 2, 3, 4, 5], A is a sublist of B
21 * A = [1, 2, 3], B = [1, 2, 3], A is equal to B
22 * A = [1, 2, 3, 4, 5], B = [2, 3, 4], A is a superlist of B
23 * A = [1, 2, 4], B = [1, 2, 3, 4, 5], A is not a superlist of, sublist of or equal to B
24
25## Source
26
27### Created by
28
29- @EduardoBautista
30
31### Contributed to by
32
33- @ashleygwilliams
34- @coriolinus
35- @cwhakes
36- @eddyp
37- @EduardoBautista
38- @efx
39- @ErikSchierboom
40- @IanWhitney
41- @kytrinyx
42- @lutostag
43- @mkantor
44- @nfiles
45- @petertseng
46- @rofrol
47- @stringparser
48- @xakon
49- @ZapAnton \ No newline at end of file