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