[LeetCode] 2511. Maximum Enemy Forts That Can Be Captured

You are given a 0-indexed integer array forts of length n representing the positions of several forts. forts[i] can be -1, 0, or 1 where: -1 represent
posted @ 2023-09-02 01:12  CNoodle  阅读(7)  评论(0编辑  收藏  举报