Coding Challenge: Array Second Minimum
Learn how to take an array as input and find the second minimum number from the array.
Problem statement
Write a program that creates an array of the following elements, then returns the second minimum element.
7,14,5,21,19,31
Input
values = [3, 11, 7, 2, 9, 10];
Expected output
3
Coding exercise
Access this course and 1400+ top-rated courses and projects.