/* 自定義代碼塊樣式 */

herrDeng網內搜尋

自訂搜尋

Ads

2026年9月4日 星期五

0ms C++ Py3 |Suffix MIN與Prefix MAX解Leetcode 3903, 3904 Smallest Stable Index


0ms C++ Py3 Suffix MIN與Prefix MAX解Leetcode 3903, 3904  Smallest Stable Index
使用一個名為 suf 的陣列來記錄字尾最小值(suffix min)。
接著進行動態Prefix MAX(字首最大值)的計算,以找出何時滿足Max-suf[i] leq k!
[Py3  code請進]

2026年9月2日 星期三

0ms C++ 1-line Py3解Leetcode 3875, 3876 Construct Uniform Parity Array


0ms C++ 1-line Py3解Leetcode 3875, 3876  Construct Uniform Parity Array
一次解Leetcode 3875, 3876,code很簡單,重點是邏輯。
Solving LeetCode 3875 & 3876 together. Simple code, focus is on the logic.
Related Posts Plugin for WordPress, Blogger...

熱門文章