/* 自定義代碼塊樣式 */
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.
[codes on Leetcodes]
https://leetcode.com/problems/minimum-number-of-steps-to-make-two-strings-anagram/solutions/4555476/freq-count-o-26-space-1-line-8ms-beats-100/
[Leetcode playList]
https://www.youtube.com/watch?v=TqKZGAHLKdw&list=PLYRlUBnWnd5IdDHk2BjqXwesydU17z_xk
沒有留言:
張貼留言
較新的文章
較舊的文章
首頁
訂閱:
張貼留言 (Atom)
熱門文章
用 while loop
用 while loop 算 s=3*3+4*4+....88*88
ex1算平均
33, 45, 87, 99, 27 算平均
ex. SHA-256, SHA3-256, RIPEMD-160
請問"虛擬貨幣用的雜湊函數"的SHA-256, SHA3-256, RIPEMD-160的雜湊摘要值
輸出課表代碼矩陣
輸出課表代碼矩陣 Hint: 2-D array, double-for loop
計算你上學期加權平均
計算你上學期加權平均
Ex1 連續複利
連續複利
Ex5 請問int怎麼存-689這個數字
問int怎麼存-689這個數字。 int用4個bytes。 答案請用16進位表達。
Ex4 請用100字內表達對3D列印的看法
某人說「3D列印如果成為工業革命,我名字倒過來寫」,但人類已經可以用3D列印印心臟,也印出人造衛星。請用100字內表達對3D列印的看法
data structure 期中考乙
data structure 期中考乙
產生 亂數
產生10個0~99的亂數存在a[10] 中
沒有留言:
張貼留言