Sha256: 1285d1309267c6f272dd479b61dc1446c58e4698cb63a14350f2e9f3b27621ea

Contents?: true

Size: 1.5 KB

Versions: 174

Compression:

Stored size: 1.5 KB

Contents

The kindergarten class is learning about growing plants. The teachers
thought it would be a good idea to give them actual seeds, plant them in
actual dirt, and grow actual plants.

They've chosen to grow grass, clover, radishes, and violets.

To this end, they've put little styrofoam cups along the window sills,
and planted one type of plant in each cup, choosing randomly from the
available types of seeds.

```plain
[window][window][window]
........................ # each dot represents a styrofoam cup
........................
```

There are 12 children in the class:

- Alice, Bob, Charlie, David,
- Eve, Fred, Ginny, Harriet,
- Ileana, Joseph, Kincaid, and Larry.

Each child gets 4 cups, two on each row. The children are assigned to
cups in alphabetical order.

The following diagram represents Alice's plants:

```plain
[window][window][window]
VR......................
RG......................
```

So in the row nearest the window, she has a violet and a radish; in the
row behind that, she has a radish and some grass.

Your program will be given the plants from left-to-right starting with
the row nearest the windows. From this, it should be able to determine
which plants belong to which students.

For example, if it's told that the garden looks like so:

```plain
[window][window][window]
VRCGVVRVCGGCCGVRGCVCGCGV
VRCCCGCRRGVCGCRVVCVGCGCV
```

Then if asked for Alice's plants, it should provide:

- Violets, radishes, violets, radishes

While asking for Bob's plants would yield:

- Clover, grass, clover, clover

Version data entries

174 entries across 174 versions & 1 rubygems

Version Path
trackler-2.1.0.18 common/exercises/kindergarten-garden/description.md
trackler-2.1.0.17 common/exercises/kindergarten-garden/description.md
trackler-2.1.0.16 common/exercises/kindergarten-garden/description.md
trackler-2.1.0.15 common/exercises/kindergarten-garden/description.md
trackler-2.1.0.14 common/exercises/kindergarten-garden/description.md
trackler-2.1.0.13 common/exercises/kindergarten-garden/description.md
trackler-2.1.0.12 common/exercises/kindergarten-garden/description.md
trackler-2.1.0.11 common/exercises/kindergarten-garden/description.md
trackler-2.1.0.10 common/exercises/kindergarten-garden/description.md
trackler-2.1.0.9 common/exercises/kindergarten-garden/description.md
trackler-2.1.0.8 common/exercises/kindergarten-garden/description.md
trackler-2.1.0.7 common/exercises/kindergarten-garden/description.md
trackler-2.1.0.6 common/exercises/kindergarten-garden/description.md
trackler-2.1.0.5 common/exercises/kindergarten-garden/description.md
trackler-2.1.0.4 common/exercises/kindergarten-garden/description.md
trackler-2.1.0.3 common/exercises/kindergarten-garden/description.md
trackler-2.1.0.2 common/exercises/kindergarten-garden/description.md
trackler-2.1.0.1 common/exercises/kindergarten-garden/description.md
trackler-2.1.0.0 common/exercises/kindergarten-garden/description.md
trackler-2.0.8.55 common/exercises/kindergarten-garden/description.md