什麼是ECDSA?
Herr Deng桑的教學blog
這是Herr Deng桑的教學blog,主要處理作業與班導事務,另外還有數位小品。
herrDeng網內搜尋

自訂搜尋
Ads
3009年5月25日 星期四
2025年10月8日 星期三
C++ Py3 計數排序與partial sum解Leetcode 2300 Successful Pairs of Spells and ...
C++ Py3 計數排序與partial sum解Leetcode 2300 Successful Pairs of Spells and Potions
Portions的極大值小於等於10萬是可進行記數排序的關鍵,既然可以採用記數排序,後面的二元搜尋也可以透過partial sum的手法加速。
[Py3 code請進]
2025年10月4日 星期六
Py3 C++ C 2pointer速解Leetcode 11Container With Most Water
Py3 C++ C 2pointer速解Leetcode 11Container With Most Water
[Py3 code請進]
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解請進]
2025年9月25日 星期四
2025年9月16日 星期二
C C++ GCD LCM解Leetcode難題2197 Replace Non Coprime Numbers in Array[含Py3 code]
C C++ GCD LCM解Leetcode難題2197 Replace Non Coprime Numbers in Array
用binary Euclidean algorithm定義gcd,然後定義lcm之後就是用stack
[Py3 code請進]
2025年9月14日 星期日
C++ Trie prefix tree解母音拼字Leetcode 966 Vowel Spellchecker
C++ Trie prefix tree解母音拼字Leetcode 966 Vowel Spellchecker
如果unordered_set, unordered_map有其他替方案就用,能用Trie去解也算是一種成就
--------
If there are alternatives to unordered_set and unordered_map, use them. Being able to solve them with Trie is also an achievement.
2025年9月10日 星期三
C++示範bitset取代hashset解Leetcode 1733 Minimum Number of People to Teach(含Py3 code)
C++示範bitset取代hashset解Leetcode 1733 Minimum Number of People to Teach
C++ STL的unordered_set與bitset都能解這題,但執行效率差很多,有誰寫C++其執行效能要比類似的Python code還要慢上好久倍?用hashset就如此
[Python code請進 ]
2025年9月8日 星期一
Py3 C++算術建構解1317 Convert Integer to the Sum of Two No Zero Integers
Py3 C++算術建構解1317 Convert Integer to the Sum of Two No Zero Integers
[Py3解請進]
訂閱:
文章 (Atom)
熱門文章
-
教育部為提昇全民資安素養與電腦防護能力,本部於101年9月5日至11月5日舉辦「全民資安素養自我評量」活動,請在活動期間內踴躍上網檢測資訊安全素養認知程度,並有機會參與抽獎,詳情請參閱活動網站(網址: https://isafe.moe.edu.tw/event
-
C++示範bitset取代hashset解Leetcode 1733 Minimum Number of People to Teach C++ STL的unordered_set與bitset都能解這題,但執行效率差很多,有誰寫C++其執行效能要比類似的Python cod...
-
Py3 C++算術建構解1317 Convert Integer to the Sum of Two No Zero Integers [Py3解請進]
-
C C++ GCD LCM解Leetcode難題2197 Replace Non Coprime Numbers in Array 用binary Euclidean algorithm定義gcd,然後定義lcm之後就是用stack [Py3 code請進]
-
C++C py3 log4 prefix sum/bits解Leetcode難題3495 Minimum Operations to Make Array Elements Zero ceil(log4(x)) 可以透過 clz 計算;將 expSum 定義為部分和來計算。 [...
-
C++ C Py3 Rust數bits解Leetcode 2749 Minimum Operations to Make the Integer Zero [Py3解請進]