1794. Count Pairs of Equal Substrings With Minimum Difference
Description
**Input:** firstString = "abcd", secondString = "bccda"
**Output:** 1
**Explanation:** The quadruple (0,0,4,4) is the only one that satisfies all the conditions and minimizes j - a.**Input:** firstString = "ab", secondString = "cd"
**Output:** 0
**Explanation:** There are no quadruples satisfying all the conditions.ac
Last updated