Herr Deng桑的教學blog
這是Herr Deng桑的教學blog,主要處理作業與班導事務,另外還有數位小品。
網頁
(移至...)
首頁
密碼學
程式設計Programming
APP
計算機概論
▼
2024年5月26日 星期日
python C++ DP動態規劃速解難題Leetcode 552 Student Attendance Record II
python CPP DP動態規劃速解難題Leetcode 552 Student Attendance Record II
Leetcode 552. Student Attendance Record II為什麼是難題?原來@cache這招會導致MLE。先用動態規劃解,因為參數只有一個,當然還有更快的Matrix power解法
-------
‹
›
首頁
查看網路版