about | help | code help+videos | done | prefs |
Write a method that accepts an array of integers, the number to find called "find", and the number to replace it with called "replace". Return the original array with all instances of "find" replaced with "replace". testSLAPHL_Q10([50, 60, 20, 50], 50, -1) → [-1, 60, 20, -1] testSLAPHL_Q10([4, 3, 2, 1], 2, 55) → [4, 3, 55, 1] testSLAPHL_Q10([100, 4, 6], 50, 2000) → [100, 4, 6] ...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: 299
Copyright Nick Parlante 2017 - privacy