diyaaa19 / maxmin_array

Design an algorithm to find the maximum and minimum elements in an array

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Input: [8, 2, 10, 1, 5]

Output: Maximum Element: 10, Minimum Element: 1

Explanation: In the input array [8, 2, 10, 1, 5], the maximum element is 10, and the minimum element is 1.Input: [8, 2, 10, 1, 5]

Output: Maximum Element: 10, Minimum Element: 1

Explanation: In the input array [8, 2, 10, 1, 5], the maximum element is 10, and the minimum element is 1.

About

Design an algorithm to find the maximum and minimum elements in an array


Languages

Language:Python 100.0%