Min and Max element of an Array
Jan 22, 2023 · 2 min read · Problem Statement You have given an array A you have to find the minimum and maximum element of that array. Example input: 23 22 34 12 54 21 45 67 output: 12 67 Approaches Approach 1 you can sort the array using some sorting algorithm and return th...
Join discussion