#10 - Small Element in the array

Example 1

Input:

arr = [12, 5, 8, 23, 17, 9]

Output:

Small Element = 5

Example 2

Input:

arr = [-5,-9, -4, -1, -2]

Output:

Largest Element = -9

Last updated