Closed vaskoz closed 4 years ago
Good morning! Here's your coding interview problem for today.
This problem was asked by Google.
Given a word W and a string S, find all starting indices in S which are anagrams of W.
W
S
For example, given that W is "ab", and S is "abxaba", return 0, 3, and 4.
"ab"
"abxaba"
0
3
4
Identical to Day 111: https://github.com/vaskoz/dailycodingproblem-go/issues/232
Good morning! Here's your coding interview problem for today.
This problem was asked by Google.
Given a word
W
and a stringS
, find all starting indices inS
which are anagrams ofW
.For example, given that
W
is"ab"
, andS
is"abxaba"
, return0
,3
, and4
.