Search
⌘K
Get Premium
Leetcode 2511. Maximum Enemy Forts That Can Be Captured
Find the maximum number of consecutive enemy forts (0s) that can be captured by moving an army from one of your forts (1) to an empty position (-1) such that the path contains only 0s; return that length (or 0 if no such 1→-1 move exists).
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
All Regions
Comments
Hello Interview Premium
Your account is free and you can post anonymously if you choose.