Binary bomb

Throughout my autodidactic journey of studying Computer Systems: A programmer’s perspective (CSAPP, for short)1 I have stumbled upon a CS 61 course offered by Harvard. The course is divided in 6 units where the 2nd unit contains a problem set called Binary Bomb. The name of todays article. Introduction From the problem set specified here we are introduced to the concept of a binary bomb: A binary bomb is a program that consists of a sequence of phases. Each phase reads a line from the standard input. If the line is correct, then the phase is defused and the bomb proceeds to the next phase. Otherwise, the bomb explodes by printing “BOOM!!!” and then terminating. The bomb is defused when every phase has been defused. ...

July 21, 2026 · 11 min · Mohamad Farman