Cody

Problem 31. Remove all the words that end with "ain"

Created by Cody Team in Community

Given the string s1, return the string s2 with the target characters removed.

For example, given

 s1 = 'the main event'

your code would return

 s2 = 'the  event'

Note the 2 spaces between "main" and "event" Only the four letters in the word "main" were deleted.

Solution Stats

25.09% Correct | 74.91% Incorrect
Last solution submitted on May 24, 2019

Problem Comments

Solution Comments

Recent Solvers938

Suggested Problems

More from this Author95