Solution: Longest Subarray of 1's After Deleting One Element
Solution: Longest Subarray of 1's After Deleting One Element asks you to remove exactly one value from a binary array and return the longest non-empty subarray of ones left, or zero if none remains.
We'll cover the following...
We'll cover the following...
Statement
Given a binary array nums, remove exactly one element from it. Return the length of the longest non-empty subarray consisting entirely of
Note: Exactly one element must always be deleted, even if all elements are
's.
Constraints:
nums.length...