Given an image, output the [width in pixels of a full vertical section]1 (if one exists). If no vertical section exists, output 0
.
Input may be provided as a local file or a nested array. If you choose to take input as a nested array, white pixels should be represented by a truthy value while non-white pixels should be represented by a falsey value.
1. the number of contiguous, all-white columns
You can assume that
no image will be larger than 1000 square pixels
there will be no more than one full vertical section per image
Examples
Inputs:
Outputs:
50
57
0
0
Here are the first two examples, highlighted (in yellow) to show their sections: