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

 

array_withoutSevens


Given an integer array, create a new array that contains the same elements as the given array except without any values of 7.


array_withoutSevens([5, 6, 7, 8]) → [5, 6, 8]
array_withoutSevens([6, 7, 8]) → [6, 8]
array_withoutSevens([1, 7, 7, 2]) → [1, 2]

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

public int[] array_withoutSevens(int[] data) { }

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

Post-solution available

Copyright Nick Parlante 2017 - privacy