You are given a s, string a, string b, and an integer k.
An index i is called beautiful if:
s.length a.length
The substring of s starting at index i with length a.length is equal to a
There exists at least one index j such that:
s.length b.length
The substring of s starting at index j with length b.length is equal to b
Return an array containing all beautiful indices sorted in ascending order.
Constraints:
s.length
a.length, b.length
s, a, and b contain only lowercase English letters.
You are given a s, string a, string b, and an integer k.
An index i is called beautiful if:
s.length a.length
The substring of s starting at index i with length a.length is equal to a
There exists at least one index j such that:
s.length b.length
The substring of s starting at index j with length b.length is equal to b
Return an array containing all beautiful indices sorted in ascending order.
Constraints:
s.length
a.length, b.length
s, a, and b contain only lowercase English letters.