/* 自定義代碼塊樣式 */
Herr Deng桑的教學blog
這是Herr Deng桑的教學blog,主要處理作業與班導事務,另外還有數位小品。
網頁
首頁
密碼學
程式設計Programming
APP
計算機概論
herrDeng網內搜尋
自訂搜尋
Ads
2024年1月13日 星期六
python C++速解Leetcode 1347 Minimum Number of Steps to Make Two Strings A...
python cpp速解Leetcode 1347 Minimum Number of Steps to Make Two Strings Anagram
No need for hash table. there are are just 26 alphabets.
s is anagram of t ⟺ freq(s)==freq(t)
In other words, s is a permutation of t.
按我讀文 »
2024年1月8日 星期一
Python C++解二元搜尋樹問題Leetcode 938 Range Sum of BST
Python C++解二元搜尋樹問題Leetcode 938 Range Sum of BST。其實這是蠻典型二元收尋樹的問題,可以試著使用preorder, postorder & inorder等不同走訪的方式來解,二元收尋樹是資料結構的內容,會用它來寫程式跟不會用,就有顯著的區隔。
按我讀文 »
2024年1月3日 星期三
Python C++速解Leetcode 2125 Number of Laser Beams in a Bank
Python C++速解Leetcode 2125 Number of Laser Beams in a Bank
按我讀文 »
2023年12月31日 星期日
Python C++速解Leetcode 1624 Largest Substring Between Two Equal Characters
Python C++速解Leetcode 1624 Largest Substring Between Two Equal Characters。
2023年底是簡單題Leetcode 1624. Largest Substring Between Two Equal Characters,無需Hash table,用array才是王道
按我讀文 »
2023年12月30日 星期六
Python C++速解Leetcode 1897 Redistribute Characters to Make All Strings E...
Python CPP速解Leetcode 1897 Redistribute Characters to Make All Strings Equal。簡單問題要找到解方,想太複雜就不好了
按我讀文 »
2023年12月25日 星期一
C++ Python DP動態規劃解Leetcode 91 Decode Ways
C++ Python DP動態規劃解Leetcode 91 Decode Ways
按我讀文 »
2023年12月23日 星期六
Python C++ hash set解Leetcode 1496 Path Crossing
Python C++ hash set解Leetcode 1496 Path Crossing
按我讀文 »
2023年12月20日 星期三
python nsmallest與C++ nth_element解巧克力Leetcode2706 Buy Two Chocolates
python nsmallest與C++ nth_element解巧克力Leetcode2706 Buy Two Chocolates
按我讀文 »
2023年12月18日 星期一
python 1line solves Leetcode 1913 Maximum Product Difference Between Two Pairs
2023年12月16日 星期六
Python C++秒搞定Leetcode 242 Valid Anagram
Python C++秒搞定Leetcode 242 Valid Anagram。其實解這問題C++, Python都有1 line code,有興趣者請進:
按我讀文 »
較新的文章
較舊的文章
首頁
訂閱:
文章 (Atom)
熱門文章
array
array ex 1, 2,3,7,8
統計2
統計第一作業 2, 3, 8, 9
簡易程式1
請問如何用C/C++程式產生下列輸出? 1111111 2222222 3333333 4444444 5555555 6666666 7777777
C字串練習
C字串練習 字串 char word[]="You win!"; 輸出為: You win! You win You wi You w You You Yo Y 給進階使用者: gets () 是個危險的函式!
ex3 請用CPU-Z軟體檢測Cache & Memory
請用CPU-Z軟體檢測Cache & Memory 註:快取(L1-L3: SRAM) 第一級快取(L1)–通常存取只需要幾個週期,通常是幾十個KB。 第二級快取(L2)–比L1約有2到10倍較高延遲性,通常是幾百個KB或更多。 第三級快取(L3)(不...
GCD
GCD(123456789,345634567)=?
無線網路中WEP安全嗎?
Ex1 撰寫C++程式與Dev C++設定
Vigenere加密
明文=I'm student key=(2,15,8) 密文=?
作業 3
請輸出如下 * ** *** **** ***** ******