The Student Who Became the Teacher
Steven Ward
77930

I bet he is planning a digital heritage system now.

Btw, your solution is not cheating at all. It's totally normal to switch all the cases when they are easily enumerable. You just need not repeat those same cases and put only one at the end of the group of cases, since without break an empty case just falls through.

Like what you read? Give Yufan Lou a round of applause.

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