#Given an array of elements,Find the smallest and second smallest element. #time-complexity: O(n),Auxiliary-space:O(1) def find_smallest2(a) len=a.length min= second= 1.0/0.0 for i in 0...len if a[i] [-1, 0]