Got a YouTube account?

New: enable viewer-created translations and captions on your YouTube channel!

English subtitles

← Find Last - Intro to Computer Science

Get Embed Code
6 Languages

Showing Revision 6 created 05/25/2016 by Udacity Robot.

  1. So for this question, your goal is to define a procedure, named "find_last," that takes as input 2 strings.
  2. The first string is a search string; the second string is the target string.
  3. And it outputs the last position in the search string where the target string appears, as long as it appears at least once.
  4. If it doesn't appear at all, then the output should be -1.