This repository has been archived on 2023-07-05. You can view files and clone it, but cannot push or open issues/pull-requests.
notes/Project Vault/Current Occupations/Potential and Future/Amazon/Coding Assessment/Practice Problems/google/Google Problem.md

7 lines
225 B
Markdown
Raw Normal View History

2023-07-05 03:05:42 +00:00
# Google problem
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`.
For example, given that W is "ab", and S is "abxaba", return 0, 3, and 4.