Update How To Count Things.ipynb
This commit is contained in:
@@ -79,7 +79,7 @@
|
||||
"\n",
|
||||
"> A typical barcode is pictured below. A valid barcode consists of alternating black and white stripes, where each stripe is either 1, 2, or 3 units wide. For a box that is *n* units wide, how many different valid barcodes are there?\n",
|
||||
"\n",
|
||||
"\n",
|
||||
"\n",
|
||||
"\n",
|
||||
"We'll represent a unit as a character, `'B'` or `'W'`, and a barcode as a string of *n* units. The barcode above would start with `'BWWBW...'`. A valid string is one without 4 of the same character/unit in a row; `valid_barcode` tests for this.\n",
|
||||
"\n",
|
||||
|
||||
Reference in New Issue
Block a user