Find Smallest and Largest Number in Unsorted Array – O(n) Time
Given an input array of integers, your goal is to find both smallest and largest number present in the array in an effective way. Note, you need to achieve this in O(n) time i.e., you should be able to find… Read More!