Second Smallest Element Problem
Second Smallest Element Problem — ExecCode School DSA Practice
Solve the Second Smallest 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 Smallest Element. Find the second smallest number and print it.
Examples
Input 5 5 2 8 1 9; Output 2. Input 3 1 1 2; Output 1
Constraints
1 <= N <= 1000
Practice Second Smallest Element free on ExecCode. Browse DSA problems, topic map, and placement guides.