Write a function to find the minimum element in an array {3, 5, 2, 8, 1}.
MediumProblem Statement
Write a function to find the minimum element in an array {3, 5, 2, 8, 1}.
Sample Input
3 5 2 8 1
Sample Output
Minimum element: 1
Limits
Time: 2s · Memory: 256 MB