/* 自定義代碼塊樣式 */
Herr Deng桑的教學blog
這是Herr Deng桑的教學blog,主要處理作業與班導事務,另外還有數位小品。
網頁
首頁
密碼學
程式設計Programming
APP
計算機概論
herrDeng網內搜尋
自訂搜尋
Ads
2025年8月28日 星期四
Py3 C++速解Leetcode 3446 Sort Matrix by Diagonals/with Py3 code
Py3 C++速解Leetcode 3446 Sort Matrix by Diagonals
矩陣問題都是很好的迴圈、陣列練習,又加上排序那就是很好的練習題
[Py3 code請進]
按我讀文 »
2025年8月27日 星期三
C++ dp動態規劃解Leetcode 3459 Length of Longest V Shaped Diagonal Segment
C++ dp動態規劃解Leetcode 3459 Length of Longest V Shaped Diagonal Segment
採DP動態規劃迭代版本解難題,需要定義V-shaped distance
------
Using the DP dynamic programming iterative version, it is necessary to define the V-shaped distance
[codes on Leetcode]
https://leetcode.com/problems/length-of-longest-v-shaped-diagonal-segment/solutions/7126168/dp-recursive-dfs-or-iteration-beats-100/
[DP動態規劃Playlist]
https://www.youtube.com/watch?v=30yq3fmE6E8&list=PLYRlUBnWnd5K_XYUesV9oc6M9ONXII61T
2025年8月26日 星期二
Py3 C++畢氏定理速解Leetcode 3000 Maximum Area of Longest Diagonal Rectangle
Py3 C++畢氏定理速解Leetcode 3000 Maximum Area of Longest Diagonal Rectangle
Py3 C++ Pythagorean Theorem Quick Solution Leetcode 3000 Maximum Area of Longest Diagonal Rectangle
[codes on Leetcode]
https://leetcode.com/problems/maximum-area-of-longest-diagonal-rectangle/solutions/7122597/easy-1-pass-vs-max-with-custom-cmp-c-py3-beats-100/
[Leetcode playlist]
https://www.youtube.com/watch?v=VfRVKO7El9w&list=PLYRlUBnWnd5IdDHk2BjqXwesydU17z_xk
2025年8月24日 星期日
Py3 C++ sliding window速解Leetcode1493 Longest Subarray of 1's After Dele...
Py3 C++ sliding window速解Leetcode1493 Longest Subarray of 1's After Deleting One Element
示範如何從一般 sliding window解答簡化成單迴圈解答解無if
[Py3解在此,請進]
按我讀文 »
較新的文章
較舊的文章
首頁
訂閱:
意見 (Atom)
熱門文章
11!=?
11!=?
何謂public-key密碼系統?....
何謂public-key密碼系統? 何謂secret-key密碼系統? 各列舉五種!
寫一個是否上學期成績2/3的程式
寫一個是否上學期成績2/3的程式
Ex2 請問你所使的電腦的規格
請問你所使的電腦,CPU的規格 Cache多大?其他硬體配置...... 另外, "INTEL® XEON PHI™ 處理器 7230F"的大致規格為?
作業 3
請輸出如下 * ** *** **** ***** ******
Ex1. The Imitation Game心得
金鑰總數159*10^18 億=10^8 兆=10^12 京=10^16 垓=10^20 秭=10^24 穣=10^28 溝=10^32 澗=10^36 正=10^40 載=10^44 極=10^48 恆河沙=10^52 阿僧祇=10^56 那由...
費式數列
請用 for, array算出費式數列 其中 f[0]=f[1]=1, f[n]=f[n-1]+f[n-2] 或公式解 f(n)=1/sqrt(5)((1+sqrt(5))/2)^(n+1)-1/sqrt(5)((1-sqrt(5))/2)^(n+1)
Ex2 請破譯以下enigma密文
ECTJGJMUGEFVHZYLQFMQKKXFYIOSNLOJVSAFYSJLWIYUFJSDER FIDTCKSDFSITUMGOWJLZJZPBKLCIVVDYVICGRBFBYSXMRAOBHZ GQXQXCQAFPSXCGYJTJSHUINWPPLIJISZNNQCBV...
算gcd
計算gcd(123456789,999999999)
Java作業10
用random產生double陣列10個元素 排序