Herr Deng桑的教學blog
這是Herr Deng桑的教學blog,主要處理作業與班導事務,另外還有數位小品。
網頁
(移至...)
首頁
密碼學
程式設計Programming
APP
計算機概論
▼
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
沒有留言:
張貼留言
HTML 編輯器
‹
›
首頁
查看網路版
沒有留言:
張貼留言
HTML 編輯器