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

 

srp4379@lausd.net > secondLargest2
prev  |  next  |  chance

EXTRA CREDIT: public int secondLargest(int[] nums). Given an array of integers, return the 2nd largest value.


secondLargest2([1, 2, 3, 4, 5, 6]) → 5
secondLargest2([2, 4, 6, 8, 10]) → 8
secondLargest2([1, 4, 7, 3, 9, 22, 12]) → 12

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

public int secondLargest2(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: 120 Post-solution available

Copyright Nick Parlante 2017 - privacy