I need to find the indices of int A is within String B, for example, given:
A: 53 and B: “1953786”
should return 2.
Without using a built in function such as indexOf… The length of the string can be of any length, what sort of algorithm would suit such a search?
1 Answer