Given a binary array nums, you must delete exactly one element. Return the length of the longest run of 1s in the resulting array.
Input: one line of space-separated 0/1 integers. Output: the maximum length (0 if none).
1 1 0 1
3
Delete the 0 → [1,1,1].
0 1 1 1 0 1 1 0 1
5
Delete the middle 0 → run of 5.
1 1 1
2
You must delete something.
Run your code against the sample tests, or Submit to run the full suite.