• + 1 comment

    What is meant by smallest and next smallest element in sub-array? Like as in given example when array is [9,6,3,5,2] They took smallest elements as 9 and 6 instead of 2 and 3.Why?