8. Find Minimum Element
Lesson 9 of 31 in Coddy's 30 Days of Logic Building in C++ course.
Challenge
EasyWrite a function to find the minimum element in an array.
- Input: [8, 3, 6, 2, 7]
- Output: 2
Try it yourself
#include <vector>
using namespace std;
int findMinElement(vector<int> arr) {
// Write code here
}All lessons in 30 Days of Logic Building in C++
1Introduction
Introduction