Given 2 strings, a and b, return a new string made of the first char of a and the last char of b, so "yo" and "java" yields "ya". If either string is length 0,…
Sign up now. It's free!
See the full question with its answer and worked solution.
Given two strings, append them together (known as "concatenation") and return the result. However, if the concatenation creates a double-char, then omit one of…
Sign up now. It's free!
See the full question with its answer and worked solution.
Given two strings, append them together (known as "concatenation") and return the result. However, if the strings are different lengths, omit chars from the…
Sign up now. It's free!
See the full question with its answer and worked solution.
Given a string, return a new string made of 3 copies of the first 2 chars of the original string. The string may be any length. If there are fewer than 2 chars,…
Sign up now. It's free!
See the full question with its answer and worked solution.
Given a string, if a length 2 substring appears at both its beginning and end, return a string without the substring at the beginning, so "HelloHe" yields…
Sign up now. It's free!
See the full question with its answer and worked solution.
Given a string, return a version without the first 2 chars. Except keep the first char if it is 'a' and keep the second char if it is 'b'. The string may be any…
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.