Search Results

Searching for: substring

Individual Exercises

0 / 30

Given a string, return true if "bad" appears starting at index 0 or 1 in the string, such as with "badxxx" or "xbadxx" but not "xxbadxx"....

0 / 30

Given a string, return the string made of its first two chars, so the string "Hello" yields "He". If the string is shorter than length 2,...