Tìm số nhỏ thứ hai trong mảng Python

//Để tìm Số nhỏ thứ hai trong số các số đã cho
a = list[]
number = int[input["Nhập số . "]]
print['Nhập số vào mảng. ']
for i in range[int[number]].
n = input["số. "]
a. nối thêm[int[n]]

a. sort[]
#Để chuyển đổi các phần tử đã cho theo thứ tự tăng dần
temp = 0
temp=a[1]
print[a] #To print array elements in sorting order
print["Second smallest number: ",a[1]]

Một giải pháp đơn giản là sắp xếp mảng theo thứ tự tăng dần. Hai phần tử đầu tiên trong mảng đã sắp xếp sẽ là hai phần tử nhỏ nhất. Độ phức tạp thời gian của giải pháp này là O[n Log n]

Giải pháp tốt hơn là quét mảng hai lần. Trong lần duyệt đầu tiên, hãy tìm phần tử tối thiểu. Đặt phần tử này là x. Trong lần duyệt thứ hai, tìm phần tử nhỏ nhất lớn hơn x. Độ phức tạp thời gian của giải pháp này là O[n]

Giải pháp trên yêu cầu hai lần duyệt mảng đầu vào

Một giải pháp hiệu quả có thể tìm thấy hai yếu tố tối thiểu trong một lần duyệt. Dưới đây là thuật toán hoàn chỉnh

thuật toán

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second

Thực hiện

C++

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
17

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
18

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
19

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
20
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
21
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
22
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
23

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
0

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
2
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
3
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
4
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
3
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
6

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
7

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
8
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
3
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
10

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
0

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
8
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
13

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
8
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
15
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
16

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
8
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
7

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
19
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
170
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
171
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
172

_______119____4174____4172

_______08____4177

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
0

_______08____4180

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
8
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
182
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
183

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
8
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
7

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
19____4187

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
19____4189

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
19
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
15
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
192

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
19
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
7

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
195
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
196

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
195
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
198

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
19____4177

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
0

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
19____4203

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
19____4205

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
19
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
207
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
15
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
209

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
195
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
211

_______08____4177

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
8
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
15
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
216

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
19
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
218
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
219
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
172

_______08____4207

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
19
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
218
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
225
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
226
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
227

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
195
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
229
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
230

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
177

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
0

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
233

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
3
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
235

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
7

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
8
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
3
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
239

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
8
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
3
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
02
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
03
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
04
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
03
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
06

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
8
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
08

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
8
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
174
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
11

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
177

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
0

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
14

C

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
15

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
16

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
17

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
0

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
2
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
3
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
4
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
3
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
24

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
25

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
8
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
3
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
28

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
0

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
8
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
13

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
8
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
15
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
34

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
8
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
25

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
19
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
38
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
39
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
171
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
41

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
19
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
174
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
44

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
8
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
46

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
0

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
8
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
49

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
8
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
182
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
52

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
8
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
25

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
19____4187

_______057____4189

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
19
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
15
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
61

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
19
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
25

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
195
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
65

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
195
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
67

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
19
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
46

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
0

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
19____4203

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
57
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
74

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
19
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
207
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
15
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
78

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
195
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
80

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
8
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
46

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
8
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
15
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
85

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
19
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
38
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
39
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
219
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
41

_______08____4207

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
19
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
38
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
39
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
96

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
97____098
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
99

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
46

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
0

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
102

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
3
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
104

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
25

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
8
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
3
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
108

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
8
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
3
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
02
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
03
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
04
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
03
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
115

_______08____1117

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
8____4174
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
120

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
46

Java

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
122

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
123
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
124

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
0

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
126
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
127

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
25

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
8
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
130

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
131
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
132

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
8
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
134
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
2
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
3
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
138

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
8
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
25

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
19
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
3
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
143

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
0

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
19
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
13

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
19
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
15
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
149
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
150
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
151

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
19
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
25

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
195
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
155____4171
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
41

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
195
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
174
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
44

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
19
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
46

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
0

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
19
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
165

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
19
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
182
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
39
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
3
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
170
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
171____1172

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
19
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
25

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
195
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
176

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
177____4189

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
195
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
15
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
61

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
195
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
25

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
184
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
65

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
184
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
67

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
195
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
46

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
0

________ 4195 ________ 1192

_______097____074

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
195
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
207
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
15
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
78

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
184
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
80

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
19
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
46

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
19
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
15
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1705

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
195
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
155____41708
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1709

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1710
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1711
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
41

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
19
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
207

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
195
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
155____4225
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1709

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1710
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1720
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1721
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1709

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1710
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1724
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1725

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
8
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
46

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
0

_______08____41730

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
8
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1732
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
134
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1735

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
8
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
25

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
19
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
3
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1740
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1741
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1742
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1743
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1742
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1745
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1742
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1747
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1742
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1749
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1742
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1745
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1752

_______119____41754

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
8
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
46

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
46

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1758

con trăn

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1759

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
123
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1761

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
0

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1763
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1764

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
0

_______08____41767

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
8
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1769____41770
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1771
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1772

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
8
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
15
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1775____1150
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1777

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
19
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1779
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1780

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
19
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
174

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
0

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
8
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1785______41770
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1787
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1770
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1789

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
8
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
182
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1792
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1793
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1794
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
39
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
171
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1797

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
0

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
19
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1800

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
19____41802

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
19
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
15
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1805

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
195
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1787
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1770
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1785

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
195
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1785______41770
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1813

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
0

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
19____41816

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
19____41818

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
19
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1820
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1821______41822
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1823
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1770
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1825

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
195
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1787
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1770
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1829

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
0

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
8
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
15
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1833____41770
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1770
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1836

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
19
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1779
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1839

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
8____4207____41777

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
19
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1779
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1845
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1846
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1847

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
177
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1849
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1850

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
0

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1852

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1853
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1770
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1855
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1741
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1742
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1743
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1742
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1745
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1742
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1747
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1742
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1749
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1742
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1745
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1867

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1868

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
0

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1870

C#

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1871

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1872

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
20
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1874

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
0

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
126
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1877

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
25

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1879

_______08____41881

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1879
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1883

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
8
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
134
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
2
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
3
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1889

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
8
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
25

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
19
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
3
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1894

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
0

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
19
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
13

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
19
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
15
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
34

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
19
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
25

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
195
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1904
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
171
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
41

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
195
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
174
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
44

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
19
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
46

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
0

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
19
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1914
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
3
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1916

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1917

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
19
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
182
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
39______03
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1922

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
19
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
25

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
195
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
176

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
195
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
189

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
195
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
15
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
61

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
195
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
25

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
184
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
65

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
184
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
67

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
195
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
46

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
0

________ 4195 ________ 1192

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
195
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
205

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
195
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
207
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
15
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
78

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
184
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
80

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
19
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
46

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
19
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
15
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1955
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
3
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1957

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
195
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1904
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1708
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1709

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1962____41711
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
41

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
19
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
207

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
195
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1904______4225
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1709

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1962
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1720
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1721
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1709

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1962
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1724
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1725

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
8
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
46

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
0

_______08____41730

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
8
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1732
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
134
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1987

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
8
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
25

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
19
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
3
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1992

_______119____41754

_______08____4177

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
46

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
0

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1999

PHP

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
2000

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
2001

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
2002

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
0

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
2004
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
2____42006
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1742
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
2008
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
151

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
25

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
8
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
2012
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
2013

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1879

_______08____42016

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
2017____42018

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
8
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
15
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
39____42008
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
2023

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
8
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
25

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
19
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
2027
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
39
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
171
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
41

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
19
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
174
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
44

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
8
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
46

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
0

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
8
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
2038
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1770
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
2040
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1770
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
2012
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
44

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
8
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
182
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
39____42047
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
2048
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
2047
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
2050
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
2008
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
44
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
2047
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
2054

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
8
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
25

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1917

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
19____42059

_______057____42061

_______057____42063

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
57____42065

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
19
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
15
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
39
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
2006
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1855
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
2047
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
2072
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
2038
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
151

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
19
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
25

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
195
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
2040
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1770
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
2038
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
44

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
195
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
2038
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1770
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
2006
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1855
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
2047
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
2088

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
19
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
46

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
0

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
19____42093

_______057____42095

_______057____42097

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
19
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
207
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
15
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
39
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
2006
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1855
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
2047
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
2072
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
2040
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
2107

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
2108
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
2006
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1855
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
2047
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
2112
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
2038
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
151

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
195
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
2040
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1770
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
2006
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1855
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
2047
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
2088

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
8
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
46

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
8
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
15
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
39____42040
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
2128
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
2012
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
151

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
19
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
2027
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
39
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
219
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
41

_______08____4207

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
19
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
2027
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
225
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1742
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
2038

_______42143____41742____42145

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
2146
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1742
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
2040
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
44

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
46

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
0

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
2152

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
2006
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1770
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
2155
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
2156

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
2157
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1770
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
2159
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
39
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
2006
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
41

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
2______42006
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1742
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
2157
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
151

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
0

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
2169

1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
2170


đầu ra.
1] Initialize both first and second smallest as INT_MAX
   first = second = INT_MAX
2] Loop through all the elements.
   a] If the current element is smaller than first, then update first 
       and second. 
   b] Else if the current element is smaller than second then update 
    second
1

Cách tiếp cận tương tự có thể được sử dụng để tìm các phần tử lớn nhất và lớn thứ hai trong một mảng

Thời gian phức tạp. Trên]

Bài viết liên quan.
Các phần tử tối thiểu và tối thiểu thứ hai sử dụng phép so sánh tối thiểu

Vui lòng viết nhận xét nếu bạn tìm thấy bất kỳ lỗi nào trong chương trình/thuật toán trên hoặc các cách khác để giải quyết vấn đề tương tự

Làm cách nào để tìm phần tử lớn thứ ba và nhỏ thứ hai trong một mảng?

Ý tưởng cơ bản là lặp lại mảng hai lần và đánh dấu phần tử lớn nhất và lớn nhất thứ hai rồi loại trừ cả hai để tìm phần tử lớn nhất thứ ba . e phần tử cực đại không bao gồm cực đại và cực đại thứ hai.

Làm cách nào để tìm số nhỏ nhất và lớn nhất trong một mảng trong Python?

Sử dụng hàm min[] và max[] của Python để tìm giá trị nhỏ nhất và lớn nhất trong dữ liệu của bạn . Gọi min[] và max[] với một lần lặp duy nhất hoặc với bất kỳ số lượng đối số thông thường nào. Sử dụng min[] và max[] với chuỗi và từ điển.

Chủ Đề