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.

沒有留言:

Related Posts Plugin for WordPress, Blogger...

熱門文章