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

 

norm.krumpe@muohio.edu program7 > secondLargest
prev  |  next  |  chance

Given 4 different integers, return the second largest integer.


secondLargest(1, 2, 3, 4) → 3
secondLargest(4, 3, 1, 2) → 3
secondLargest(4, 3, 1000, -1) → 4

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

int secondLargest(int a, int b, int c, int d) { }

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

Copyright Nick Parlante 2017 - privacy