about | help | code help+videos | done | prefs |
cleanList
Write a function that accepts two lists as parameters data and thingsToRemove. Remove from the data list any elements that match any of the elements the thingsToRemove list. The data list is returned. Note the data list should be modified, you should NOT make a copy and return that. cleanList([1, 2, 3, 1], [1, 5]) → [2, 3] cleanList([1, 2, 3, 1], []) → [1, 2, 3, 1] cleanList([], [1, 2, 3, 1]) → [] ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Copyright Nick Parlante 2017 - privacy