Try It Yourself: Solution
Explore how to implement an Elixir function that sorts matchsticks into designated box sizes, ensuring each box is full. Learn to return results using maps, practice function design, and improve problem-solving with Elixir's variables and functions.
We'll cover the following...
We'll cover the following...
Sorting matchsticks
Problem statement
A matchstick factory has to put n matchsticks in boxes. The factory has the following three types of boxes:
- A big box holds 50