Search⌘ K
AI Features

Try It Yourself

Practice how to create Elixir functions that calculate how many boxes of different sizes are needed to pack matchsticks. Understand variable assignments, data types, and how to return results in a map.

We'll cover the following...

Sorting matchsticks

A matchstick factory has to put n matchsticks in boxes. The factory has the following three types of boxes:

  • A big box holds 50 matchsticks
  • A medium box
...