/* 自定義代碼塊樣式 */
Herr Deng桑的教學blog
這是Herr Deng桑的教學blog,主要處理作業與班導事務,另外還有數位小品。
網頁
首頁
密碼學
程式設計Programming
APP
計算機概論
herrDeng網內搜尋
自訂搜尋
Ads
2025年7月4日 星期五
Py3 C++位元計算bitset速解Leetcode難題3307 Find the K th Character in String Gam...
Py3 C++位元計算bitset速解Leetcode難題3307 Find the K th Character in String Game II
[Py3 一行解請進]
按我讀文 »
2025年6月28日 星期六
Py3排序 C++nth_element速解Leetcode 2099 Find Subsequence of Length K With t...
Py3排序 C++nth_element速解Leetcode 2099 Find Subsequence of Length K With the Largest Sum
C++的nth_element很好用,基本上是做partition,在這個問題可取代sort
----
C++'s nth_element is very useful. It basically does partitioning and can replace sort in this problem.
[codes on Leetcode]
https://leetcode.com/problems/find-subsequence-of-length-k-with-the-largest-sum/solutions/6893606/nth-element-counting-sort-c-100-py3-1-line/
2025年6月19日 星期四
Py3 C++計數排序counting sort解Leetcode 2294 Partition Array Such That Maximu...
Py3 C++計數排序counting sort解Leetcode 2294 Partition Array Such That Maximum Difference Is K
基本上使用Greedy sort,而排序就用counting sort
[Python C++計數排序與一行解Leetcode 1051 Height Checker]
https://www.youtube.com/watch?v=dybiq3pg-Os
[ Leetcode play list]
https://www.youtube.com/playlist?list=PLYRlUBnWnd5IdDHk2BjqXwesydU17z_xk
2025年6月3日 星期二
2025資訊安全Steganography隱寫術Python實作
Py3 C++ DFS解Leetcode難題1298 Maximum Candies You Can Get from Boxes
Py3 C++ DFS解Leetcode難題1298 Maximum Candies You Can Get from Boxes
[codes on Leetcode]
https://leetcode.com/problems/maximum-candies-you-can-get-from-boxes/solutions/6805859/dfs-bfs-for-a-tree-beats-100/
[Tree/graph list]
https://www.youtube.com/watch?v=vdar3a_ZdCI&list=PLYRlUBnWnd5Kt0-3un43cwY6yT_il8NWe
2025年6月1日 星期日
C++Py3重複組合排容原理解Leetcode2929 Distribute Candies Among Children II
C++Py3重複組合排容原理解Leetcode2929 Distribute Candies Among Children II
Use combinatorial number with repetition & Inclusion-Exclusion Prinple to solve
[Py3解請進]
按我讀文 »
2025年5月29日 星期四
C++ DFS BFS解答Leecode難題3373 Maximize the Number of Target Nodes After Co...
C++ DFS BFS解答Leecode難題3373 Maximize the Number of Target Nodes After Connecting Trees II
圖論問題,跟bipartite有關
------------
Graphic question is related to the bipartite.
[codes on Leecode]
https://leetcode.com/problems/maximize-the-number-of-target-nodes-after-connecting-trees-ii/solutions/6791084/dfs-bfs-with-parity-bitset-beats-100/
[Tree & Graph ]
https://www.youtube.com/watch?v=vdar3a_ZdCI&list=PLYRlUBnWnd5Kt0-3un43cwY6yT_il8NWe
2025 AES 像素pixel加密圖檔解密
2025 C++ opencv卷積計算與影像處理
2025年5月25日 星期日
C++ Py3計數解Leetcode 2131 Longest Palindrome by Concatenating Two Letter ...
C++ Py3計數解Leetcode 2131 Longest Palindrome by Concatenating Two Letter Words
回文問題常被問到。這題基本上可以用計數的方法來解決。重點是兩個字母的字串 xy 和 yx 可以配對。
-----
Palindrome question is quite often asked. This question can be solved basically by using counting. It's important to know the 2-letter strings xy & yx can be paired.
[codes on Leetcode]
https://leetcode.com/problems/longest-palindrome-by-concatenating-two-letter-words/solutions/6778069/2d-array-counter-freq-count-c-c-py3-beats-100/
[C, C++ ,python速解迴文Leetcode 2108 Find First Palindromic String in the Array]
https://www.youtube.com/watch?v=eXhdv8jDpao
較新的文章
較舊的文章
首頁
訂閱:
文章 (Atom)
熱門文章
test
test請留言! 到第十前,都沒說對!提示一下: 形態轉換int->float int sum=596; average=(double)sum/10; average=sum/10; 有何不同?
ex9 請問何謂非對稱性密碼?
請問何謂非對稱性密碼? 並列舉五種以上非對稱密碼的演算法名稱。
Ex2 請破譯以下enigma密文
ECTJGJMUGEFVHZYLQFMQKKXFYIOSNLOJVSAFYSJLWIYUFJSDER FIDTCKSDFSITUMGOWJLZJZPBKLCIVVDYVICGRBFBYSXMRAOBHZ GQXQXCQAFPSXCGYJTJSHUINWPPLIJISZNNQCBV...
何謂public-key密碼系統?....
何謂public-key密碼系統? 何謂secret-key密碼系統? 各列舉五種!
請問這張卡?
請問這張卡所用的資訊技術與資安功能?
ex2
請將執行結果貼出>
Ex2 請問你所使的電腦的規格
請問你所使的電腦,CPU的規格 Cache多大?其他硬體配置...... 另外, "INTEL® XEON PHI™ 處理器 7230F"的大致規格為?
LinkedList Exercise
輸入字串陣列a[0],a[1],...a[4] 利用Java Class LinkedList 作初一鏈結串列: [ a[0], a[1], a[2], a[4], a[4],a[3],a[2],a[0] ] Hint:可利用方法addFirst, add, remo...
作業 3
請輸出如下 * ** *** **** ***** ******
作業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...