anagram

Leetcode 242. 有效的字母异位词(Valid anagram)

[题目链接🔗](https://leetcode.cn/problems/valid-anagram) 给定两个字符串s和t, 编写一个函数来判断t是否是s的字母异位词. 注意: 若s和t中每个字符出现的次数都相同, 则称s和t互为字母异位词. 示例 1: ``` 输入: s = "anagram ......
字母 Leetcode anagram Valid 242

LeetCode 438. Find All Anagrams in a String 滑动窗口

Given two strings `s` and `p`, return an array of all the start indices of `p`'s anagrams in s. You may return the answer in any order. An Anagram is ......
LeetCode Anagrams String Find 438

Leetcode Hot 100 & 49. Group Anagrams

写在前面: 不知不觉已经研二下了,既然选择以后走AI这条路,不可避免地也得刷一刷leetcode题目,因为招聘的时候笔试总是要用到的。首先刷一刷leetcode的hot 100题,好记性赶不上烂笔头,记录下来在写这些算法题中的收获给自己看。 参考资料: 考点:哈希 & [题干] 这题没做出来,第一次 ......
Leetcode Anagrams Group Hot 100

[LeetCode] 1347. Minimum Number of Steps to Make Two Strings Anagram 制造字母异位词的最小步骤数

You are given two strings of the same length `s` and `t`. In one step you can choose **any character** of `t` and replace it with **another character* ......
字母 LeetCode 步骤 Anagram Minimum
共4篇  :1/1页 首页上一页1下一页尾页