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

 

apcsaListRemoveFirstMatch


Given an ArrayList of three Integers, determine if two or more of the elements match. If so, remove the first instance of the matching elements. Return the modified ArrayList, which should now have two elements (the first matching element having been removed).


apcsaListRemoveFirstMatch([0, 3, 0]) → [3, 0]
apcsaListRemoveFirstMatch([4, 4, 2]) → [4, 2]
apcsaListRemoveFirstMatch([3, 4, 5]) → [3, 4, 5]

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

public ArrayList<Integer> apcsaListRemoveFirstMatch(ArrayList<Integer> lst) { }

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