LeetCode 713. Subarray Product Less Than K
學習計畫碰到的。好像有一段時間沒有做滑動視窗。
學習計畫碰到的。好像有一段時間沒有做滑動視窗。
以前某次周賽卡住的。明明就是HARD題的變形,那時就想說似曾相識。 解法其實滿多種的,值得多刷的題目。
和2008同一個概念,只是終點可能到10^9,以地點長度開dp會MLE。要換別種做法。
每日題。總感覺似曾相似,原來是2139. Minimum Moves to Reach Target Score。
半年以前看了果斷跳過的題。今天做556題才發現是同個道理嗎,有如醍醐灌頂。