0030
Description
Examples
Input:
s = "barfoothefoobarman",
words = ["foo","bar"]
Output: [0,9]
Explanation: Substrings starting at index 0 and 9 are "barfoor" and "foobar" respectively.
The output order does not matter, returning [9,0] is fine too.Input:
s = "wordgoodstudentgoodword",
words = ["word","student"]
Output: []最后更新于