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

 

jebbert@volusia.k12.fl.us > sliceMult10
prev  |  next  |  chance

Write a method that accepts an array of positive integers in any order. Return the same array with the numbers in the same order, except that all the numbers that end with a zero will come first, followed by all the numbers that do NOT end in zero. The original order will be preserved EXCEPT that they will be grouped as described above. Use the test data for clarification.


sliceMult10([]) → []
sliceMult10([17]) → [17]
sliceMult10([10]) → [10]

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

public int[] sliceMult10(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: 280

Copyright Nick Parlante 2017 - privacy