/* 自定義代碼塊樣式 */
Herr Deng桑的教學blog
這是Herr Deng桑的教學blog,主要處理作業與班導事務,另外還有數位小品。
網頁
首頁
密碼學
程式設計Programming
APP
計算機概論
herrDeng網內搜尋
自訂搜尋
Ads
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
2025年5月22日 星期四
C++ opencv selectROI擷圖與馬賽克
2025年5月20日 星期二
2025 AES opencv python圖檔加密
2025年5月17日 星期六
opencv C++使用卷積convolution/correlation進行影像處理
opencv C++使用卷積convolution/correlation進行影像處理
按我讀文 »
C/C++/Py3使用荷蘭旗演算3 pointer解Leetcode 75 Sort Colors
C C++ Py3使用荷蘭旗演算3 pointer解Leetcode 75 Sort Colors
一次走訪演算採用於荷蘭旗演算法。
[Py3解請進]
按我讀文 »
2025年5月15日 星期四
2025 opencv C++萬用VideoCapture Class
C++ Py3 Greedy 2 pointer速解(含1行解)Leetcode 2900 Longest Unequal Adjacent ...
C++ Py3 Greedy 2 pointer速解2900 Longest Unequal Adjacent Groups Subsequence I
C++ 會採用 2 -pointers主要的原因,就是不要額外的陣列,達到真正的O(1)空間解。
[Py3一行解請進]
---------
按我讀文 »
較新的文章
較舊的文章
首頁
訂閱:
文章 (Atom)
熱門文章
Vigenere加密
明文=I'm student key=(2,15,8) 密文=?
C字串練習
C字串練習 字串 char word[]="You win!"; 輸出為: You win! You win You wi You w You You Yo Y 給進階使用者: gets () 是個危險的函式!
無線網路中WEP安全嗎?
Ex1 撰寫C++程式與Dev C++設定
計算你的BMI
計算你的BMI
Ex3 C++作業「13個星座」
NASA認為現在的天宮圖與3000年前不同,現在的地球軸心位置改變,星座也發生移位,所以他們決定加入「蛇夫座」。 輸入月、日,輸出所屬的13個星座。
array
array ex 1, 2,3,7,8
簡易程式2(平方和)
請用C/C++ 程式計算 S=1*1+2*2+3*3+4*4+.....+20*20=?
replace
replace(str1, str2,i) 程式碼
GCD
GCD(123456789,345634567)=?