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

 

commonAlgMaxSalary


An array list contains the salaries of the executive staff at an international company. Return the maximum salary from this array list. If there are no salaries, return -1.


commonAlgMaxSalary([100000, 225000, 155000, 220000]) → 225000
commonAlgMaxSalary([1000000, 990000, 800000]) → 1000000
commonAlgMaxSalary([]) → -1

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

public int commonAlgMaxSalary(List<Integer> salaryList) { }

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: 10 Post-solution available

Copyright Nick Parlante 2017 - privacy