about | help | code help+videos | done | prefs |
Given an integer array "a", return the array but with all of the values of 5 changed to 0. array_fivesToZeroes([3, 4, 5]) → [3, 4, 0] array_fivesToZeroes([5, 1, 2]) → [0, 1, 2] array_fivesToZeroes([1, 2, 3, 4, 5]) → [1, 2, 3, 4, 0] ...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