[48in24 Exercise] [07-30] Kindergarten Garden

This issue is a discussion for contributors to collaborate in getting ready to be featured in 48in24. Please refer to this forum topic for more info.

We will be featuring Kindergarten Garden from Jul 30 onwards.

Staff jobs

These are things for Erik/Jeremy to do:

  • ☐ Check/update exercise in Problem Specifications
  • ☐ Create + schedule video

Community jobs

For each track:

  • Implement Kindergarten Garden
  • Add approaches (and an approaches introduction!) for each idiomatic or interesting/educational approach.
  • Add video walkthroughs (record yourself solving and digging deeper into the exercise).
  • Highlight up to 16 different featured exercises (coming soon)

Existing Approaches

You can use these as the basis for approaches on your own tracks. Feel free to copy/paste/reuse/rewrite/etc as you see fit! Maybe ask ChatGPT to translate to your programming language.

Track Statuses

You can see an overview of which tracks have implemented the exercise at the #48in24 implementation status page.

I’ve currently gathered the following solutions to feature:

  1. Python: explicit indexing, index of student as index
    Index into the rows explicitly using index of student name

  2. F#: explicit indexing, student name’s first letter as index and pattern matching
    Index into the rows explicitly and use map and pattern matching to convert to plant

  3. Nim: enum with char as value
    Easily convert from char to enum through enum value and student’s first letter

  4. Clojure: functional pipeline, partition, zip and combine
    Threading macro, partition rows, zip with student and combine

  5. Ruby: metaprogramming, regex to partition and transpose rows
    Use regular expression to partition, then transpose to make rows cols

If anyone has more suggestions, do let us know!

I’ll port for CoffeeScript and LFE.

1 Like