Find Nth Occurrence

The third question on the 2017 AP Computer Science Exam had you go through a phrase and replace the Nth occurrence of a string and find the last occurrence. For both of these you were required to use a method called findNthOccurrence , which did not have an implementation shown. Like many AP FRQs you […]