/* 自定義代碼塊樣式 */
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
較新的文章
較舊的文章
首頁
查看行動版
訂閱:
意見 (Atom)
熱門文章
python requests讀取台積電股票json資訊爬蟲練習
url="https://www.twse.com.tw/exchangeReport/STOCK_DAY?response=json&date=20220330&stockNo=2330"
Ex1 連續複利
連續複利
Ex10. 請用Random產生20個0~99的奇數(可重複),然後排序
請用Random產生20個0~99的奇數(可重複),然後排序
Java作業6 bmi判斷
py3 C++ Line sweep解Leetcode 3346 Maximum Frequency of an Element After ...
py3 cpp Line sweep解Leetcode 3346 Maximum Frequency of an Element After Performing Operations I 使用 line sweep不用排序,可得線性解 [Py3解請進]
RSA習題
RSA中, p = 11, q = 13, e = 11 計算n, phi(n), 若明文m = 7, d =11?密文c =?
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萬是可進行記數排序的關鍵,既然可以採用記數排序,後面的二元搜尋也可以透過part...
Py3 C++ C 2pointer速解Leetcode 11Container With Most Water
Py3 C++ C 2pointer速解Leetcode 11Container With Most Water [Py3 code請進]
Py3 C++計數bitmask與2 pointers速解Leetcode2273 Find Resultant Array After Re...
Py3 C++計數bitmask與2 pointers速解Leetcode2273 Find Resultant Array After Removing Anagrams 字串長度最長也只有10,四個bits一組,用bitmask解題 ----- The maximum le...
Ex6 輸入公元n年,輸出"平年" "閏年"
輸入公元n年,輸出"平年" "閏年"