about | help | code help+videos | done | prefs |
Given an ArrayList of Integers, return the ArrayList after changing all of the elements with a value of 5 to 3. change5sTo3s([1, 2, 3, 4, 5]) → [1, 2, 3, 4, 3] change5sTo3s([5, 2, 5, 4, 5, 12, 45]) → [3, 2, 3, 4, 3, 12, 45] change5sTo3s([1, 2, 3, 5, 5]) → [1, 2, 3, 3, 3] ...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: 177
Copyright Nick Parlante 2017 - privacy