Given a binary array nums, delete one element and return the size of the longest non-empty subarray containing only 1s.
Sliding window allowing at most one zero. The result is window size minus 1 (the deleted element).
- Use same pattern as max consecutive ones with k=1 (allow one zero).
- The answer is maxWindowSize - 1 (we must delete exactly one element).
- Edge case: if no zeros in array, answer is n-1.
- Time Complexity: O(N)
- Space Complexity: O(1)