LeetCode 1794. Count Pairs of Equal Substrings With Minimum Difference
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.Solution
PreviousLeetCode 1793. Maximum Score of a Good SubarrayNextLeetCode 1796. Second Largest Digit in a String
Last updated