Second Smallest
Easy · rating 1000 · Arrays
The first line has n. The second line has n integers with at least two distinct values. Print the second smallest distinct value.
Constraints: 2 ≤ n ≤ 105
Related problems
- Account Balance — Easy
- Best Time to Buy and Sell Stock — Easy
- Count Above Average — Easy
- Dropped Frames — Easy
- Health Bar — Easy
- Merge Two Sorted Arrays — Easy