Write a function to find the second smallest number in an array.
MediumProblem Statement
Write a function to find the second smallest number in an array.
Sample Input
[4, 2, 9, 7, 5]
Sample Output
4
Limits
Time: 2s · Memory: 256 MB
Write a function to find the second smallest number in an array.
[4, 2, 9, 7, 5]
4
Time: 2s · Memory: 256 MB