Second Largest Element Problem
Second Largest Element Problem — ExecCode School DSA Practice
Solve the Second Largest Element problem on ExecCode. Free online school DSA practice in Arrays - Logic Building. Write and run code in Java, C++, Python — no signup required to run.
Problem description
You are given a list of whole numbers. Your task is to solve Second Largest Element. Find the second largest number and print it.
Examples
Input 5 10 20 4 45 99; Output 45. Input 3 1 2 2; Output 2
Constraints
1 <= N <= 1000
Practice Second Largest Element free on ExecCode. Browse DSA problems, topic map, and placement guides.