about | help | code help+videos | done | prefs |
Given an element and a sequence (either a string or a list), return a new sequence from which all occurrences of the element have been removed. Implement a recursive solution. removeAll('a', 'aaahaaia!a') → 'hi!' removeAll('a', ['a', 'a', 'a', 'h', 'a', 'a', 'i', 'a', '!', 'a']) → ['h', 'i', '!'] removeAll('b', 'bcbcbc') → 'ccc' ...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: 200 Post-solution available
Copyright Nick Parlante 2017 - privacy