HardcoreRobot
Lifer
Yes, its for homework, so if you don't want to help thats fine.
The problem is more specific, but basically I need to write a recurisive algorithm that searches for a substring in an array and returns the leftmost occurrence if it is present.
Right now, the only thing I can think of is just using recursion to mimic a for loop and compare. Im really trying to find a way where I dont have to look at each character... any ideas? I dont need the algorithm, just suggestions.
The problem is more specific, but basically I need to write a recurisive algorithm that searches for a substring in an array and returns the leftmost occurrence if it is present.
Right now, the only thing I can think of is just using recursion to mimic a for loop and compare. Im really trying to find a way where I dont have to look at each character... any ideas? I dont need the algorithm, just suggestions.