Find Minimum in Array Problem

Find Minimum in Array Problem — ExecCode School DSA Practice

Solve the Find Minimum in Array 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 in Array. Find the smallest number in the list and print it.

Examples

Input 5 5 2 8 1 9; Output 1. Input 3 -1 0 1; Output -1

Constraints

1 <= n <= 10^5

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