leetcode-218 - The Skyline Problem

動機 被這題搞了兩天,所以要記錄下來 以前沒有看線段合併的Divide and Conquer,所以要記錄下來 (還債) 以前沒有看Segment tree,所以要記錄下來 (還債) ...

July 28, 2021 · 5 min · zhengcf

leetcode-67 - Add Binary

動機 加加加 ...

July 28, 2021 · 1 min · zhengcf

leetcode-384 - Shuffle an Array

動機 python有shuffle ...

July 27, 2021 · 2 min · zhengcf

leetcode-118 - Pascal's Triangle

動機 水題 ...

July 25, 2021 · 1 min · zhengcf

leetcode-29 - Divide Two Integers

動機 阿,除法 ...

July 25, 2021 · 2 min · zhengcf

leetcode-341 - Flatten Nested List Iterator

動機 讓每個遞迴只負責一個工作 ...

July 25, 2021 · 2 min · zhengcf

leetcode-140 - Word Break II

動機 就是backtrack ...

July 25, 2021 · 1 min · zhengcf

leetcode-329 - Longest Increasing Path in a Matrix

動機 因為題目特性,不用考慮重複走的問題 ...

July 25, 2021 · 1 min · zhengcf

leetcode-210 - Course Schedule II

動機 沒辦法用cache_computing偷懶了 ...

July 25, 2021 · 2 min · zhengcf

leetcode-84 - Largest Rectangle in Histogram

動機 Monotonic Stack在pop時當下的狀態是 1 2 3 .left. 7 .right. 2 right的數字大小一定是大於7!! left的數字一定是等於7 這樣就可以形成一個閉區間,這也讓這題變成經典題 ...

July 25, 2021 · 1 min · zhengcf