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

 

andersoniii.edwin@cusd80.com > wack_A_Zero
prev  |  next  |  chance

Wack-A-Zero -- You will be given an array of integers and you will be asked to remove all ZEROs and return an array of integers without zeros (and smaller) Example [0,0,0,0,1] -> [1] -- If the array does not contain any numbers - then return a empty array.


wack_A_Zero([]) → []
wack_A_Zero([0, 0, 0, 0, 1]) → [1]
wack_A_Zero([0, 0, 0, 0, 0]) → []

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

public int[] wack_A_Zero(int[] nums) }

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

Copyright Nick Parlante 2017 - privacy