Write a Ruby program to find the smallest number in an array.
EasyProblem Statement
Write a Ruby program to find the smallest number in an array.
Sample Input
[8, 3, 5, 2, 7]
Sample Output
2
Limits
Time: 2s · Memory: 256 MB
Write a Ruby program to find the smallest number in an array.
[8, 3, 5, 2, 7]
2
Time: 2s · Memory: 256 MB