about | help | code help+videos | done | prefs |
removeAll
Given an element and a list, return a new list from which all occurrences of the element have been removed. Implement an iterative (non-recursive) solution. removeAll('a', ['a', 'a', 'a', 'h', 'a', 'a', 'i', 'a', '!', 'a']) → ['h', 'i', '!'] removeAll(5, [1, 2, 5, 5, 4, 6]) → [1, 2, 4, 6] removeAll(10, []) → [] ...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
Copyright Nick Parlante 2017 - privacy