about | help | code help+videos | done | prefs |
Write a method that returns a copy of 'str' but with all instances of 'ltr' removed. Also remove ANY letter that occurs immediately AFTER 'ltr'. For example, "about all are able", with 'a' being removed results in "out ll re le" since 'a' is removed along with any character immediately after it. Look at the test data for examples. Recursion is not required, but is allowed. feb13_2020_APP1SLHL_removeLtr("This is a test", "i") → "Th a test" feb13_2020_APP1SLHL_removeLtr("abababab", "a") → "" feb13_2020_APP1SLHL_removeLtr("once an onion opened oil", "o") → "ce an i ened l" ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 290
Copyright Nick Parlante 2017 - privacy