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