about | help | code help+videos | done | prefs |
Define a function that when passed an integer array and an integer (say key), returns an array containing all POSITIVE items in the array that are divisible by key. The order of items in the resulting array should be the same as the order in which they occur in the original array. positiveMultiples([], 10) → [] positiveMultiples([20], 10) → [20] positiveMultiples([-20], 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: 4 Post-solution available
Copyright Nick Parlante 2017 - privacy