What we did:
Take two arrays as parameter.
Try to locate the second string in the first by going through the entire first string.
If we are at a character that starts to match our second string we examine it.
If it is, we return the index where it starts, else we keep going or return -1 at the end.
Problem:
https://leetcode.com/problems/find-th...
More Java Practice Problems:
• Java Assignments, Exercises, and Problems ...