id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

mrsdianneoc@gmail.com > fixAll23
prev  |  next  |  chance

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)

public int[] fixAll23(int[] nums){ }

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Java Help

Misc Code Practice

Difficulty: 220

Copyright Nick Parlante 2017 - privacy