Lesson 1: Iterations

In programming, iterating means repeating some part of your program. This lesson presents basic programming constructions that allow iterations to be performed: “for” and “while” loops.

Open reading material (PDF)

BinaryGap

Find the longest sequence of zeros in the binary representation of an integer.

Difficulty Level: Easy