Leetcode 1554. Strings Differ by One Character
Posted on Mon 24 February 2025 in Leetcode Premium • Tagged with string, rolling-hash
Question Link : https://leetcode.com/problems/strings-differ-by-one-character/
Difficulty: Medium
Premium: True
Question
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. Example 1:
Input …
Continue reading