Find Minimum Element Problem

Find Minimum Element Problem — ExecCode School DSA Practice

Solve the Find Minimum Element problem on ExecCode. Free online school DSA practice in Arrays - Basics. Write and run code in Java, C++, Python — no signup required to run.

Problem description

You are given a list of whole numbers. Your task is to solve Find Minimum Element. Find the smallest number in the list and print it.

Examples

Input 4 1 2 3 4; Output 1. Input 2 -1 -2; Output -2

Constraints

1 <= N <= 1000 -10^9 <= A[i] <= 10^9

Practice Find Minimum Element free on ExecCode. Browse DSA problems, topic map, and placement guides.