1397. Find All Good Strings
Description
**Input:** n = 2, s1 = "aa", s2 = "da", evil = "b"
**Output:** 51
**Explanation:** There are 25 good strings starting with 'a': "aa","ac","ad",...,"az". Then there are 25 good strings starting with 'c': "ca","cc","cd",...,"cz" and finally there is one good string starting with 'd': "da". **Input:** n = 8, s1 = "leetcode", s2 = "leetgoes", evil = "leet"
**Output:** 0
**Explanation:** All strings greater than or equal to s1 and smaller than or equal to s2 start with the prefix "leet", therefore, there is not any good string.**Input:** n = 2, s1 = "gx", s2 = "gz", evil = "x"
**Output:** 2ac
Last updated