/* 自定義代碼塊樣式 */
Herr Deng桑的教學blog
這是Herr Deng桑的教學blog,主要處理作業與班導事務,另外還有數位小品。
網頁
首頁
密碼學
程式設計Programming
APP
計算機概論
herrDeng網內搜尋
自訂搜尋
Ads
2025年8月20日 星期三
C++ dp動態規劃速解Leetcode 1277 Count Square Submatrices with All Ones
C++ dp動態規劃速解Leetcode 1277 Count Square Submatrices with All Ones
使用matrix當成state matrix
[codes on Leecode]
https://leetcode.com/problems/count-square-submatrices-with-all-ones/solutions/7101478/reuse-matrix-as-state-matrix-beats-100/
[DP play list]
https://www.youtube.com/watch?v=30yq3fmE6E8&list=PLYRlUBnWnd5K_XYUesV9oc6M9ONXII61T
沒有留言:
張貼留言
較新的文章
較舊的文章
首頁
查看行動版
訂閱:
張貼留言 (Atom)
熱門文章
Vigenere加密
明文=I'm student key=(2,15,8) 密文=?
C字串練習
C字串練習 字串 char word[]="You win!"; 輸出為: You win! You win You wi You w You You Yo Y 給進階使用者: gets () 是個危險的函式!
無線網路中WEP安全嗎?
Ex1 撰寫C++程式與Dev C++設定
計算你的BMI
計算你的BMI
Ex3 C++作業「13個星座」
NASA認為現在的天宮圖與3000年前不同,現在的地球軸心位置改變,星座也發生移位,所以他們決定加入「蛇夫座」。 輸入月、日,輸出所屬的13個星座。
array
array ex 1, 2,3,7,8
簡易程式2(平方和)
請用C/C++ 程式計算 S=1*1+2*2+3*3+4*4+.....+20*20=?
replace
replace(str1, str2,i) 程式碼
GCD
GCD(123456789,345634567)=?
沒有留言:
張貼留言