Programming Practice 8b

Score: 0 / 5.0


Exercises

0 / 1.0

Given a string, if the same 2-character substring appears at both its beginning and end, return the contents of the string without the...

0 / 1.0

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 / 1.0

Given a string str and an int n, return a string made of the first n characters of the string, followed by the first n - 1 characters of...