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

 

orion.a.smith@gmail.com apcsa-lists > apcsaListRemoveSomewhere
prev  |  next  |  chance

Given an ArrayList of Integers and an index to remove, remove the value at that index of the ArrayList. Return the modified ArrayList. Precondition: 0 <= index < lst.size()


apcsaListRemoveSomewhere([3, 4, 5], 0) → [4, 5]
apcsaListRemoveSomewhere([3, 4, 5], 2) → [3, 4]
apcsaListRemoveSomewhere([0, 1, 2, 3, 4, 5, 6, 7, 8], 7) → [0, 1, 2, 3, 4, 5, 6, 8]

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

public ArrayList<Integer> apcsaListRemoveSomewhere(ArrayList<Integer> lst, 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: 120

Copyright Nick Parlante 2017 - privacy