https://leetcode.com/problems/maximum-enemy-forts-that-can-be-captured
Type: Classic
[1,0,0,-1,0,0,0,0,1]
[0,0,1,-1]
[ 3 ]
[ 0, 8 ]
[ 1, 2, 4, 5, 6, 7 ]
3 0
3 8
[ 3 ]
[ 2 ]
[ 0, 1 ]
3 2
4
0
https://leetcode.com/problems/maximum-enemy-forts-that-can-be-captured
Type: Classic
[1,0,0,-1,0,0,0,0,1]
[0,0,1,-1]
[ 3 ]
[ 0, 8 ]
[ 1, 2, 4, 5, 6, 7 ]
3 0
3 8
[ 3 ]
[ 2 ]
[ 0, 1 ]
3 2
4
0