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

 

tmhscs@gmail.com arrays > array_tidyUp
prev  |  next  |  chance

array_tidyUp - The given array is a mess, tidy it up by first sorting it into order least to greatest, then remove any duplicate values in the array. Get your broom, cuz its a mess!!!


array_tidyUp([5, 4, 3, 2, 1, 5, 4, 3, 2, 1]) → [1, 2, 3, 4, 5]
array_tidyUp([]) → []
array_tidyUp([0, 0, 0]) → [0]

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

public int[] array_tidyUp(int[] arr){ }

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