Herr Deng桑的教學blog
這是Herr Deng桑的教學blog,主要處理作業與班導事務,另外還有數位小品。
網頁
(移至...)
首頁
密碼學
程式設計Programming
APP
計算機概論
▼
2025年9月30日 星期二
C++ Pascal三角與模10算術解Leetcode 2221 Find Triangular Sum of an Array(含Py3 Code)
C++ Pascal三角與模10算術解Leetcode 2221 Find Triangular Sum of an Array
如果採用有支援非常長int的程式語言,mod 10算術就整個省略,就用Pascal三角的性質,可得快速解
2025年9月29日 星期一
Py3 C++ dp動態規劃解Leetcode 1039 Minimum Score Triangulation of Polygon
Py3 C++ dp動態規劃解Leetcode 1039 Minimum Score Triangulation of Polygon
Py3 C++ dp動態規劃解Leetcode 1039 Minimum Score Triangulation of Polygon
凸多邊形三角化的問題,題目看起來很幾何,解法用動態規劃,多邊形的切割其實也是divide and conquer.
[py3解請進]
‹
›
首頁
查看網路版