Herr Deng桑的教學blog
這是Herr Deng桑的教學blog,主要處理作業與班導事務,另外還有數位小品。
網頁
(移至...)
首頁
密碼學
程式設計Programming
APP
計算機概論
▼
2026年3月28日 星期六
C++UnionFind與matrix分析解難題Leetcode 2573 Find the String with LCP
解難題Leetcode 2573. Find the String with LCP,其實重點是lcp非常特殊的矩陣,只要搞定lcp各項的關聯,如對稱性,對角線上值-1等特性,應該能解出。會先用Union-Find主要是其解法可針對更為廣義的題目,要快就用貪婪。
2026年3月23日 星期一
3D DP minmax解Leetcode 1594 Maximum Non Negative Product in a Matrix
‹
›
首頁
查看網路版