about | help | code help+videos | done | prefs |
Given a text and a search term (both Strings), find the index where the search term occurs within the text. Return -1 if not found under these conditions. apcsaStringsFirstOccurrence("s", "s") → 0 apcsaStringsFirstOccurrence("s", "b") → -1 apcsaStringsFirstOccurrence("The quick brown fox jumps over the lazy dog", "quick") → 4 ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 110 Post-solution available
Copyright Nick Parlante 2017 - privacy