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

 

norm.krumpe@muohio.edu > removeFirst
prev  |  next  |  chance

Given an array and a value, return a new array with the first occurrence of that value removed.


removeFirst([17, 5, 13, 5, 8], 5) → [17, 13, 5, 8]
removeFirst([1, 2, 3], 3) → [1, 2]
removeFirst([6, 5, 4, 6, 5], 6) → [5, 4, 6, 5]

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

int[] removeFirst(int[] nums, int val) { }

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

Copyright Nick Parlante 2017 - privacy