/* 自定義代碼塊樣式 */

herrDeng網內搜尋

自訂搜尋

Ads

2025年9月16日 星期二

C C++ GCD LCM解Leetcode難題2197 Replace Non Coprime Numbers in Array[含Py3 code]


C C++ GCD LCM解Leetcode難題2197  Replace Non Coprime Numbers in Array
用binary Euclidean algorithm定義gcd,然後定義lcm之後就是用stack
[Py3 code請進]

2025年9月14日 星期日

C++ Trie prefix tree解母音拼字Leetcode 966 Vowel Spellchecker


C++ Trie  prefix tree解母音拼字Leetcode 966  Vowel Spellchecker
如果unordered_set, unordered_map有其他替方案就用,能用Trie去解也算是一種成就
 --------
If there are alternatives to unordered_set and unordered_map, use them. Being able to solve them with Trie is also an achievement.
Related Posts Plugin for WordPress, Blogger...

熱門文章