about | help | code help+videos | done | prefs |
Java > Array-1 > fix23 prev | next | chance FixAll23 Given an int array of any length, if there is a 2 in the array immediately followed by a 3, set the 3 element to 0. Return the changed array. fixAll23([2, 3]) → [2, 0] fixAll23([1, 2, 3]) → [1, 2, 0] fixAll23([1, 2, 3, 4]) → [1, 2, 0, 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
Difficulty: 220
Copyright Nick Parlante 2017 - privacy