why don’t these weeks add up?
Obi-Wan meets Java
Arpith Siromoney
12

Let’s look at a week that looks like {1, 2, 3, 4}. In the next week, we can wear shirt 4 on day 3 — but we can also wear shirt 2 on day 4, and shirt 3 on day 2, since all these “moves” can be done in a week. The next week will now look like {1, 3, 4, 2}.

This means the mission can be done in the number of weeks it takes to make the longest move (every other move can be made within this period).

Like what you read? Give Arpith Siromoney a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.