
v0.40: Create exercises. Challenge the community.
Meet Studio →Report the length of every run in a series of readings the length of each run.
April 11, 1991. Galileo is well past Earth when the command goes up to unfurl its main antenna, and the thing opens partway. A few ribs are stuck fast, most likely from four years riding around on trucks. The link drops from 134 kilobits per second to about 10 bits. JPL spent three years writing new flight software to squeeze the science down small enough to fit through the spare antenna. It worked.
run_lengths(out, {7,7,7,4,4}, 5)Expected result
2 3 2For your own tracking. Tests grade your code.
run_lengths(out, {5}, 1)Expected result
1 1run_lengths(out, {}, 0)Expected result
0Expected files
run_lengths.cAllowed functions
None. Write every helper yourself.
