about | help | code help+videos | done | prefs |
Given an integer array "arr", return a new array, but with these four rules applied.
array_fourRules([-1, -1, 0, 0, 1, 1, 2, 2, 3, 3]) → [0, 2] array_fourRules([1, 2, 3, 1, 2, 3, 0, 0, -1, -1]) → [0, 2] array_fourRules([1, 2, 3, 4, 5, 5, 4, 3, 2, 1]) → [2, 4] ...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