什麼是ECDSA?
Herr Deng桑的教學blog
這是Herr Deng桑的教學blog,主要處理作業與班導事務,另外還有數位小品。
herrDeng網內搜尋
自訂搜尋
Ads
3009年5月25日 星期四
2026年2月1日 星期日
C++ Py3用nth_element, nsmallest解Leetcode 3010 Divide an Array Into Subar...
C++ Py3用nth_element, nsmallest解Leetcode 3010 Divide an Array Into Subarrays With Minimum Cost I
問題簡單,但應該是同類問題入門,先提供幾個簡易解答
[Py3一行解請進]
----
2026年1月24日 星期六
計數排序與greedy 2 pointer解Leetcode 1877 Minimize Maximum Pair Sum in Array
計數排序與greedy 2 pointer解Leetcode 1877 Minimize Maximum Pair Sum in Array 重點是理解為何Greedy方法可行,code很簡單,就排序sort, counting sort, radix sort都來一遍
[Py3 一行解請進]
2025年12月17日 星期三
C C++ Py3 DP與OOP解Leetcode 3573 Best Time to Buy and Sell Stock V
C C++ Py3 DP與OOP解Leetcode 3573 Best Time to Buy and Sell Stock V
[Py3 code請進]
2025年12月10日 星期三
py3 C C++階乘模運算速解Leetcode 3577 Count the Number of Computer Unlocking Pe...
py3 C C++階乘模運算速解Leetcode 3577 Count the Number of Computer Unlocking Permutations
[1-liner Py3請進]
2025年12月8日 星期一
Py3 C++利用Euclid公式達O(n)解Leetcode1925 Count Square Sum Triples
Py3 C++利用Euclid公式達O(n)解Leetcode 1925 Count Square Sum Triples
用數論方法解畢氏定理三角整數解個數,這應該算是Diophantine Equation中最簡單的例題
[Py3解請進]
2025年12月2日 星期二
Py3 C++ hashmap多項次公式解梯形問題Leetcode 3623 Count Number of Trapezoids I
Py3 CPP多項次公式解梯形問題Leetcode 3623 Count Number of Trapezoids I
數有幾個不同水平梯形,先用hash map數有相同y座標的點,再用多項次公式解題
[Py3解請進]
2025年11月27日 星期四
Py3 C C++ prefix sum解Leetcode 3381 Maximum Subarray Sum With Length Div...
Py3 C C++ prefix sum解Leetcode 3381 Maximum Subarray Sum With Length Divisible by K
Very similar to Kadane's algorithm
[Py3 code請進]
2025年11月25日 星期二
Py3 C++找出pattern迭代變化解出Leetcode 1015 Smallest Integer Divisible by K
所謂的數論問題,也不一定是是像費馬定理那樣的大問題,能找出數字間的pattern也都是值得玩味的
執行直到 r=(10*r+1)%k==0(其中 k 與 2 和 5 互質),否則返回 -1
[Py3 code請進]
2025年11月21日 星期五
訂閱:
意見 (Atom)
熱門文章
-
產生50個元素的陣列並排序
-
11!=?
-
請輸出如下 * ** *** **** ***** ******
-
借錢500萬,年利18%,每月複利計算,請問連本帶利的金額 5, 10, 15, 20, 25, 30, 35, 40, 45, 50年的金額。並比較公式: A*exp(0.18n) A*(1+0.18/12)^(12*n), n=年數, A=本金 hint: math.h, p...
-
請問你所使的電腦,CPU的規格 Cache多大?其他硬體配置...... 另外, "INTEL® XEON PHI™ 處理器 7230F"的大致規格為?
-
計算你上學期加權平均
-
計算你的BMI
-
寫一個是否上學期成績2/3的程式
-
請用CPU-Z軟體檢測Cache & Memory 註:快取(L1-L3: SRAM) 第一級快取(L1)–通常存取只需要幾個週期,通常是幾十個KB。 第二級快取(L2)–比L1約有2到10倍較高延遲性,通常是幾百個KB或更多。 第三級快取(L3)(不...