leetcode
1493. Longest Subarray of 1’s After Deleting One Element
Solution
Python code
Java code
Time complexity: O(n)
Space complexity: O(1)