A story for the flatten-array exercise

Introduction

A shipment of emergency supplies has arrived, but there’s a problem. To protect from damage, the items — flashlights, first-aid kits, blankets — are packed inside boxes, and some of those boxes are nested several layers deep inside other boxes!

In case of an emergency, everything needs to be placed into a single box for quick access. Can you unpack all the items and get them into one box, ready for when they’re needed most?

3 Likes

Simple. I like it.

1 Like
2 Likes