Return a version of the given string, where for every star (*) in the string the star and the chars immediately to its left and right are gone. So "ab*cd"…
Sign up now. It's free!
See the full question with its answer and worked solution.
Given a string and a non-empty word string, return a version of the original String where all chars have been replaced by pluses ("+"), except for appearances…
Sign up now. It's free!
See the full question with its answer and worked solution.
Given a string and a non-empty word string, return a string made of each char just before and just after every appearance of the word in the string. Ignore…
Sign up now. It's free!
See the full question with its answer and worked solution.
Given a string, count the number of words ending in 'y' or 'z' -- so the 'y' in "heavy" and the 'z' in "fez" count, but not the 'y' in "yellow" (not case…
Sign up now. It's free!
See the full question with its answer and worked solution.
Given two strings, base and remove, return a version of the base string where all instances of the remove string have been removed (not case sensitive). You may…
Sign up now. It's free!
See the full question with its answer and worked solution.
Given a string, return true if the number of appearances of "is" anywhere in the string is equal to the number of appearances of "not" anywhere in the string…
Sign up now. It's free!
See the full question with its answer and worked solution.
We'll say that a lowercase 'g' in a string is "happy" if there is another 'g' immediately to its left or right. Return true if all the g's in the given string…
Sign up now. It's free!
See the full question with its answer and worked solution.
Given a string, look for a mirror image (backwards) string at both the beginning and end of the given string. In other words, zero or more characters at the…
Sign up now. It's free!
See the full question with its answer and worked solution.
AP® and Advanced Placement® are registered trademarks of the College Board, which is not affiliated with, and does not endorse, Verityprep. Names are used for identification purposes only.