-
-
Notifications
You must be signed in to change notification settings - Fork 562
Expand file tree
/
Copy pathcanonical-data.json
More file actions
183 lines (183 loc) · 4.68 KB
/
Copy pathcanonical-data.json
File metadata and controls
183 lines (183 loc) · 4.68 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
{
"exercise": "two-bucket",
"cases": [
{
"uuid": "a6f2b4ba-065f-4dca-b6f0-e3eee51cb661",
"description": "Measure using bucket one of size 3 and bucket two of size 5 - start with bucket one",
"property": "measure",
"input": {
"bucketOne": 3,
"bucketTwo": 5,
"goal": 1,
"startBucket": "one"
},
"expected": {
"moves": 4,
"goalBucket": "one",
"otherBucket": 5
}
},
{
"uuid": "6c4ea451-9678-4926-b9b3-68364e066d40",
"description": "Measure using bucket one of size 3 and bucket two of size 5 - start with bucket two",
"property": "measure",
"input": {
"bucketOne": 3,
"bucketTwo": 5,
"goal": 1,
"startBucket": "two"
},
"expected": {
"moves": 8,
"goalBucket": "two",
"otherBucket": 3
}
},
{
"uuid": "3389f45e-6a56-46d5-9607-75aa930502ff",
"description": "Measure using bucket one of size 7 and bucket two of size 11 - start with bucket one",
"property": "measure",
"input": {
"bucketOne": 7,
"bucketTwo": 11,
"goal": 2,
"startBucket": "one"
},
"expected": {
"moves": 14,
"goalBucket": "one",
"otherBucket": 11
}
},
{
"uuid": "fe0ff9a0-3ea5-4bf7-b17d-6d4243961aa1",
"description": "Measure using bucket one of size 7 and bucket two of size 11 - start with bucket two",
"property": "measure",
"input": {
"bucketOne": 7,
"bucketTwo": 11,
"goal": 2,
"startBucket": "two"
},
"expected": {
"moves": 18,
"goalBucket": "two",
"otherBucket": 7
}
},
{
"uuid": "0ee1f57e-da84-44f7-ac91-38b878691602",
"description": "Measure one step using bucket one of size 1 and bucket two of size 3 - start with bucket two",
"property": "measure",
"input": {
"bucketOne": 1,
"bucketTwo": 3,
"goal": 3,
"startBucket": "two"
},
"expected": {
"moves": 1,
"goalBucket": "two",
"otherBucket": 0
}
},
{
"uuid": "eb329c63-5540-4735-b30b-97f7f4df0f84",
"description": "Measure using bucket one of size 2 and bucket two of size 3 - start with bucket one and end with bucket two",
"property": "measure",
"input": {
"bucketOne": 2,
"bucketTwo": 3,
"goal": 3,
"startBucket": "one"
},
"expected": {
"moves": 2,
"goalBucket": "two",
"otherBucket": 2
}
},
{
"uuid": "58d70152-bf2b-46bb-ad54-be58ebe94c03",
"description": "Measure using bucket one much bigger than bucket two",
"comments": [
"Verify the solution is able to pour several times from bucket one to two with no refill"
],
"property": "measure",
"input": {
"bucketOne": 5,
"bucketTwo": 1,
"goal": 2,
"startBucket": "one"
},
"expected": {
"moves": 6,
"goalBucket": "one",
"otherBucket": 1
}
},
{
"uuid": "9dbe6499-caa5-4a58-b5ce-c988d71b8981",
"description": "Measure using bucket one much smaller than bucket two",
"comments": [
"Verify the solution is able to pour several times from bucket one to two without emptying"
],
"property": "measure",
"input": {
"bucketOne": 3,
"bucketTwo": 15,
"goal": 9,
"startBucket": "one"
},
"expected": {
"moves": 6,
"goalBucket": "two",
"otherBucket": 0
}
},
{
"uuid": "449be72d-b10a-4f4b-a959-ca741e333b72",
"description": "Not possible to reach the goal",
"property": "measure",
"input": {
"bucketOne": 6,
"bucketTwo": 15,
"goal": 5,
"startBucket": "one"
},
"expected": {
"error": "impossible"
}
},
{
"uuid": "aac38b7a-77f4-4d62-9b91-8846d533b054",
"description": "With the same buckets but a different goal, then it is possible",
"property": "measure",
"input": {
"bucketOne": 6,
"bucketTwo": 15,
"goal": 9,
"startBucket": "one"
},
"expected": {
"moves": 10,
"goalBucket": "two",
"otherBucket": 0
}
},
{
"uuid": "74633132-0ccf-49de-8450-af4ab2e3b299",
"description": "Goal larger than both buckets is impossible",
"property": "measure",
"input": {
"bucketOne": 5,
"bucketTwo": 7,
"goal": 8,
"startBucket": "one"
},
"expected": {
"error": "impossible"
}
}
]
}