...

/

Try It Yourself: Solution

Try It Yourself: Solution

See the solution to the coding exercise you tried in the previous lesson.

Sorting matchsticks

Problem statement

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

  • A
...