about | help | code help+videos | done | prefs |
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) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 280
Copyright Nick Parlante 2017 - privacy