|
1 | 1 | # Instructions |
2 | 2 |
|
3 | | -Given a diagram, determine which plants each child in the kindergarten class is |
4 | | -responsible for. |
| 3 | +Your task is to, given a diagram, determine which plants each child in the kindergarten class is responsible for. |
5 | 4 |
|
6 | | -The kindergarten class is learning about growing plants. |
7 | | -The teacher thought it would be a good idea to give them actual seeds, plant them in actual dirt, and grow actual plants. |
| 5 | +There are 12 children in the class: |
| 6 | + |
| 7 | +- Alice, Bob, Charlie, David, Eve, Fred, Ginny, Harriet, Ileana, Joseph, Kincaid, and Larry. |
| 8 | + |
| 9 | +Four different types of seeds are planted: |
8 | 10 |
|
9 | | -They've chosen to grow grass, clover, radishes, and violets. |
| 11 | +| Plant | Diagram encoding | |
| 12 | +| ------ | ---------------- | |
| 13 | +| Grass | G | |
| 14 | +| Clover | C | |
| 15 | +| Radish | R | |
| 16 | +| Violet | V | |
10 | 17 |
|
11 | | -To this end, the children have put little cups along the window sills, and |
12 | | -planted one type of plant in each cup, choosing randomly from the available |
13 | | -types of seeds. |
| 18 | +Each child gets four cups, two on each row: |
14 | 19 |
|
15 | 20 | ```text |
16 | 21 | [window][window][window] |
17 | 22 | ........................ # each dot represents a cup |
18 | 23 | ........................ |
19 | 24 | ``` |
20 | 25 |
|
21 | | -There are 12 children in the class: |
22 | | - |
23 | | -- Alice, Bob, Charlie, David, |
24 | | -- Eve, Fred, Ginny, Harriet, |
25 | | -- Ileana, Joseph, Kincaid, and Larry. |
26 | | - |
27 | | -Each child gets 4 cups, two on each row. |
28 | | -Their teacher assigns cups to the children alphabetically by their names. |
| 26 | +Their teacher assigns cups to the children alphabetically by their names, which means that Alice comes first and Larry comes last. |
29 | 27 |
|
30 | | -The following diagram represents Alice's plants: |
| 28 | +Here is an example diagram representing Alice's plants: |
31 | 29 |
|
32 | 30 | ```text |
33 | 31 | [window][window][window] |
|
0 commit comments