Leetcode - 242. Valid Anagram
此篇文章為我的解題紀錄,程式碼或許並不是很完善
解題思路
從s
裡的每個字元裡逐一的找看看t
裡面有沒有對應的,如果有就刪掉,如果沒有就直接return false,直到s
每個字元都找完時
我滴程式碼
1 | class Solution: |
All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.
Comment
GitalkFacebook Comments