首页 > TAG信息列表 > 1554

[Google] LeetCode 1554 Strings Differ by One Character 哈希

Given a list of strings dict where all the strings are of the same length. Return true if there are 2 strings that only differ by 1 character in the same index, otherwise return false. Solution 对于每个字符串,我们用哈希将其映射为数。然后对于每个位置(即删除的位