• Skip to primary navigation
  • Skip to content
  • Skip to footer
哞靠靠
  • Tags

    mocowcow

    雜事、解題紀錄

    • GitHub

    LeetCode 2866. Beautiful Towers II

    September 24, 2023

    周賽364。最近題型電波和我不合,九月已經有三次周賽只做2題,排名直接跳水。

    題目

    和2865. beautiful towers i一樣。
    只是測資範圍比較大,只能用O(N)解法。

    解法

    參照上文。

    Tags: Array, LeetCode, Medium, PrefixSum, Simulation, Stack

    Updated: September 24, 2023

    Previous Next
    © 2025 mocowcow. Powered by Jekyll & Minimal Mistakes.