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

 

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

Write a method that accepts an array of integers and returns an array in the form {lowest, highest} where lowest is the lowest valued element in the input array and highest is the highest valued element in the input array. Note that the input array may be empty, in which case just return {0,0}.


testSLAPHL_Q11([4, -3, 7, 3, 1, -2]) → [-3, 7]
testSLAPHL_Q11([]) → [0, 0]
testSLAPHL_Q11([5]) → [5, 5]

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

public int[] testSLAPHL_Q11(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: 299

Copyright Nick Parlante 2017 - privacy