gmelshall
BAN USER
Comments (3)
Reputation 60
Page:
1
Comment hidden because of low score. Click to expand.
Comment hidden because of low score. Click to expand.
6
of 6 vote
Are you guys serious?
Do you really think that this is the answer the interviewer is looking for?
Java and C#'s string class has "IndexOf" and the interviewer isn't asking you this question to test your knowledge of Java/C#'s String class.
Instead, you're supposed to implement the "IndexOf" method. You need to actually search the string and find the index of the "needle".
Look up the KMP algorithm
Comment hidden because of low score. Click to expand.
Page:
1
CareerCup is the world's biggest and best source for software engineering interview preparation. See all our resources.
- gmelshall April 14, 2013