Software Engineer 2 Interview Questions

2,531 software engineer 2 interview questions shared by candidates

Given a string A consisting of n characters and a string B consisting of m characters, write a function that will return the number of times A must be stated such that B is a substring of the repeated A. If B can never be a substring, return -1.
avatar

SDE-2

Interviewed at Google

4.4
Sep 20, 2021

Given a string A consisting of n characters and a string B consisting of m characters, write a function that will return the number of times A must be stated such that B is a substring of the repeated A. If B can never be a substring, return -1.

Viewing 1011 - 1020 interview questions

Glassdoor has 2,531 interview questions and reports from Software engineer 2 interviews. Prepare for your interview. Get hired. Love your job.