12 challenges match these filters
total_values(data) should add up a dictionary's values, so total_values({'a': 1, 'b': 2}) returns 3.
Other
sorted_names(names) should return the names in alphabetical order, so sorted_names(["b","a"]) returns ["a","b"].
Other
The function copies a grid, edits the copy, then reports the ORIGINAL's first cell — which should be unchanged. For [[1,2],[3,4]] it returns 1.
Other
addRounded(a, b) should add two numbers and return the result rounded to two decimal places, as a number. addRounded(1, 2) is 3.
Other
stripDashes(text) should remove every dash, so stripDashes("a-b-c") returns "abc".
Other
merge_settings(defaults, overrides) should merge overrides on top of defaults without changing the defaults. It returns "mode|numberOfDefaultKeys" so you can see both.
Other
shout(text) should return the text in uppercase, so "hello" becomes "HELLO".
Other
flattenDeep(arr) should flatten a nested array completely, however many levels deep it goes.
Other
remove_evens(nums) should return the list with all even numbers removed.
Other
addPrices(a, b) should add two prices in dollars and return a value correct to the cent.
Other
with_theme(settings, theme) should return a copy with a new theme, leaving the original untouched. It returns "newtheme|originaltheme" so you can see both.
Other
factorial(n) should return n! (n factorial), e.g. factorial(5) -> 120.
Other