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

 

remove


Given an array, and an int index, remove the element at the given index from the array and return a new array. You can always assume the given index is a valid index in the range.


remove([1], 0) → []
remove([1, 2, 3], 2) → [1, 2]
remove([4, 5, -4, 9], 0) → [5, -4, 9]

...Save, Compile, Run (ctrl-enter)

public int[] remove(int[] arr, int index) { }

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: 210

Copyright Nick Parlante 2017 - privacy