leetcode

2511. Maximum Enemy Forts That Can Be Captured

Solution code

Time complexity: O(n)

Space complexity: O(1)

Runtime 0 ms
Beats 100.00% of users with Java

Memory 41.22 MB
Beats 52.47% of users with Java