Herr Deng桑的教學blog
這是Herr Deng桑的教學blog,主要處理作業與班導事務,另外還有數位小品。
網頁
首頁
密碼學
程式設計Programming
APP
計算機概論
herrDeng網內搜尋
自訂搜尋
Ads
2025年2月7日 星期五
Python C++ hashmap解Leetcode 3160 Find the Number of Distinct Colors Am...
Python C++ hashmap解Leetcode 3160 Find the Number of Distinct Colors Among the Balls
嘗試2個hashmap來解決。由於實際運行,可以說,Python dict 比 C++ unordered_map 快得多
[Py3 code請進]
按我讀文 »
2025年2月6日 星期四
排列組合Python解Leetcode 1726 Tuple with Same Product
本片展示如何理解這題排列組合實質內容,以及如何完成 1 行Python程式碼。
[Py3 code請進]
按我讀文 »
2025年2月3日 星期一
Python C++單迴圈速解Leetcode 3105 Longest Strictly Increasing or Strictly De...
Python cpp單迴圈速解Leetcode 3105 Longest Strictly Increasing or Strictly Decreasing Subarray
用單迴圈就可解,甚至也沒有用到if, switch, tenary
[Py3解請進]
按我讀文 »
較新的文章
較舊的文章
首頁
訂閱:
文章 (Atom)
熱門文章
11!=?
11!=?
輸出字串20次
輸出字串20次
method & function
產生50個元素的陣列並排序
產生50個元素的陣列並排序
計算你上學期加權平均
計算你上學期加權平均
寫一個是否上學期成績2/3的程式
寫一個是否上學期成績2/3的程式
C字串練習
C字串練習 字串 char word[]="You win!"; 輸出為: You win! You win You wi You w You You Yo Y 給進階使用者: gets () 是個危險的函式!
memset, memcpy
解釋memset, memcpy
ex7 猜數字
猜數字
C程式練習
int a[]={21, 23, 57, 13 ,17, 6}; float average; average=?