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

 

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

Write a method that accepts an array of three integers as an input parameter. Return a new array that is a sorted version of the input array in increasing order. Note that you may assume the input parameter array has exactly three elements in it, but those elements could be ANY integers. You may NOT use ArrayLists or any pre-made methods that perform sorts. You MAY use Math.max and Math.min, but they are not required.


quiz2021_12_08_SLHL_smallSort([-15, 0, 2]) → [-15, 0, 2]
quiz2021_12_08_SLHL_smallSort([248, -3, -16]) → [-16, -3, 248]
quiz2021_12_08_SLHL_smallSort([5, 7, 2]) → [2, 5, 7]

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

public int[] quiz2021_12_08_SLHL_smallSort(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: 230

Copyright Nick Parlante 2017 - privacy