/* 自定義代碼塊樣式 */
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)
熱門文章
ex1算平均
33, 45, 87, 99, 27 算平均
用 while loop
用 while loop 算 s=3*3+4*4+....88*88
ex. SHA-256, SHA3-256, RIPEMD-160
請問"虛擬貨幣用的雜湊函數"的SHA-256, SHA3-256, RIPEMD-160的雜湊摘要值
輸出課表代碼矩陣
輸出課表代碼矩陣 Hint: 2-D array, double-for loop
計算你上學期加權平均
計算你上學期加權平均
Ex4 請用100字內表達對3D列印的看法
某人說「3D列印如果成為工業革命,我名字倒過來寫」,但人類已經可以用3D列印印心臟,也印出人造衛星。請用100字內表達對3D列印的看法
Ex5 請問int怎麼存-689這個數字
問int怎麼存-689這個數字。 int用4個bytes。 答案請用16進位表達。
產生 亂數
產生10個0~99的亂數存在a[10] 中
請用格式化輸出排 9x9乘法表
請用格式化輸出排 9x9乘法表 hint: double-for, "%nd"
data structure 期中考乙
data structure 期中考乙