/* 自定義代碼塊樣式 */
Herr Deng桑的教學blog
這是Herr Deng桑的教學blog,主要處理作業與班導事務,另外還有數位小品。
網頁
首頁
密碼學
程式設計Programming
APP
計算機概論
herrDeng網內搜尋
自訂搜尋
Ads
2024年9月19日 星期四
C++採Catalan數的遞迴DP方式計算Leetcode 241 Different Ways to Add Parentheses
C++採Catalan數的遞迴DP方式計算Leetcode 241 Different Ways to Add Parentheses
每個數字都是葉節點,而+、-、*操作則不是。算術公式的 dfs 走訪等價於其對應的帶括號的 inOrder 算式。
-----
按我讀文 »
2024年9月15日 星期日
Python C++ bitmask解Leetcode 1371 Find the Longest Substring Containing ...
Python C++ bitmask解Leetcode 1371 Find the Longest Substring Containing Vowels in Even Counts
建構一個容器first_seen[32](5個母音考慮2**5=32),它表示第一次看到的32不同bmask的索引
[Python code請進]
-----
按我讀文 »
較新的文章
較舊的文章
首頁
訂閱:
意見 (Atom)
熱門文章
計算你上學期加權平均
計算你上學期加權平均
ex1算平均
33, 45, 87, 99, 27 算平均
簡述One-Time Pad
簡述One-Time Pad!
ex1
請用 C/C++/java寫一簡易程式
作業4:複利計算
借錢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...
ex4
算上學期加權平均
array
array ex 1, 2,3,7,8
列舉對稱、非對稱密碼
列舉對稱、非對稱密碼各三種。
用 while loop
用 while loop 算 s=3*3+4*4+....88*88
3種金鑰?