Given an array arr[]. Your task is to find the minimum and maximum elements in the array. Examples: Input: arr[] = [1, 4, 3, -5, -4, 8, 6] Output: [-5, 8] Explanation: minimum and maximum elements of array are -5 and 8. Input: arr[] = [12, 3, 15, 7,...
archana-code-diary.hashnode.dev2 min read
No responses yet.