Substring Pattern Matches
Given a string s and a non-empty pattern pattern, return every starting index i in s where the substring s[i..i + pattern.length - 1] equals pattern.
Check more interview questions and experiences about Apple
Given a string s and a non-empty pattern pattern, return every starting index i in s where the substring s[i..i + pattern.length - 1] equals pattern.
Check more interview questions and experiences about Apple
Please log in to view interview question details