leetcode

1493. Longest Subarray of 1’s After Deleting One Element

Solution

Time complexity: O(n)

Space complexity: O(1)