Menu
Coddy logo textTech

Recap Challenge #2

Lesson 13 of 14 in Coddy's Strings and Arrays in C# course.

challenge icon

Challenge

Medium

Write a function named secondLargest that gets an array of integers and returns the second largest number in the array.

Try it yourself

using System;

class SecondLargest {
    public static int secondLargest(int[] nums) {
        // Write code here
    }
}

All lessons in Strings and Arrays in C#