about | help | code help+videos | done | prefs |
Modify and return the given map as follows: if the key "a" has a value, set the key "b" to have that value, and set the key "a" to have the value "". Basically "b" is a bully, taking the value and replacing it with the empty string. mapBully({"a": "candy", "b": "dirt"}) → {"a": "", "b": "candy"} mapBully({"a": "candy"}) → {"a": "", "b": "candy"} mapBully({"a": "candy", "b": "carrot", "c": "meh"}) → {"a": "", "b": "candy", "c": "meh"} ...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: 203 Post-solution available
Copyright Nick Parlante 2017 - privacy