//Để 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 second17
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second18
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second19
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second20
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second21
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second22
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second23
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second0
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second1
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second2
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second3
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second4
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second3
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second6
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second7
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second8
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second3
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second10
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second0
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second8
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second13
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second8
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second15
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second16
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second8
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second7
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second19
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second170
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second171
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second172
_______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 second0
_______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 second8
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second182
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second183
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second8
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second7
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second19____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 second19____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 second19
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second15
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second192
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second19
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second7
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second195
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second196
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second195
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second198
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second19____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 second0
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second19____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 second19____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 second19
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second207
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second15
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second209
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second195
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second211
_______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 second8
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second15
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second216
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second19
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second218
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second219
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second172
_______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 second19
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second218
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second225
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second226
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second227
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second195
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second229
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second230
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second177
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second0
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second233
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second3
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second235
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second7
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second8
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second3
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second239
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second8
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second3
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second02
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second03
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second04
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second03
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second06
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second8
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second08
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second8
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second174
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second11
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second177
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second0
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second14
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 second15
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second16
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second17
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second0
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second1
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second2
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second3
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second4
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second3
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second24
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second25
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second8
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second3
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second28
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second0
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second8
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second13
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second8
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second15
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second34
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second8
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second25
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second19
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second38
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second39
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second171
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second41
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second19
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second174
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second44
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second8
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second46
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second0
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second8
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second49
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second8
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second182
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second52
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second8
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second25
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second19____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 second19
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second15
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second61
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second19
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second25
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second195
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second65
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second195
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second67
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second19
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second46
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second0
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second19____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 second57
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second74
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second19
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second207
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second15
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second78
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second195
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second80
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second8
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second46
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second8
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second15
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second85
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second19
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second38
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second39
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second219
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second41
_______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 second19
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second38
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second39
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second96
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second97____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 second99
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second46
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second0
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second102
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second3
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second104
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second25
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second8
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second3
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second108
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second8
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second3
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second02
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second03
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second04
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second03
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second115
_______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 second8____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 second120
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second46
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 second122
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second123
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second124
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second0
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second126
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second127
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second25
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second8
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second130
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second131
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second132
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second8
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second134
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second1
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second2
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second3
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second138
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second8
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second25
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second19
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second3
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second143
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second0
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second19
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second13
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second19
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second15
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second149
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second150
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second151
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second19
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second25
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second195
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second155____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 second41
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second195
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second174
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second44
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second19
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second46
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second0
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second19
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second165
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second19
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second182
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second39
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second3
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second170
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second171____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 second19
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second25
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second195
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second176
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second177____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 second195
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second15
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second61
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second195
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second25
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second184
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second65
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second184
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second67
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second195
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second46
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second0
________ 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 second195
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second207
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second15
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second78
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second184
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second80
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second19
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second46
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second19
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second15
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second1705
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second195
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second155____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 second1709
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second1710
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second1711
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second41
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second19
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second207
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second195
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second155____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 second1709
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second1710
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second1720
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second1721
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second1709
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second1710
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second1724
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second1725
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second8
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second46
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second0
_______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 second8
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second1732
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second134
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second1
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second1735
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second8
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second25
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second19
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second3
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second1740
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second1741
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second1742
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second1743
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second1742
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second1745
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second1742
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second1747
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second1742
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second1749
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second1742
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second1745
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second1752
_______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 second8
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second46
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second46
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second1758
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 second1759
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second123
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second1761
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second0
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second1763
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second1764
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second0
_______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 second8
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second1769____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 second1771
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second1772
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second8
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second15
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second1775____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 second1777
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second19
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second1779
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second1780
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second19
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second174
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second0
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second8
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second1785______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 second1787
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second1770
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second1789
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second8
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second182
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second1792
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second1793
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second1794
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second39
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second171
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second1797
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second0
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second19
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second1800
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second19____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 second19
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second15
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second1805
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second195
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second1787
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second1770
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second1785
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second195
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second1785______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 second1813
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second0
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second19____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 second19____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 second19
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second1820
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second1821______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 second1823
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second1770
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second1825
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second195
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second1787
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second1770
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second1829
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second0
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second8
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second15
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second1833____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 second1770
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second1836
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second19
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second1779
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second1839
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second8____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 second19
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second1779
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second1845
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second1846
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second1847
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second177
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second1849
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second1850
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second0
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second1852
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second1853
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second1770
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second1855
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second1741
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second1742
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second1743
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second1742
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second1745
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second1742
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second1747
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second1742
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second1749
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second1742
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second1745
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second1867
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second1868
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second0
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second1870
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 second1871
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second1872
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second20
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second1874
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second0
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second126
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second1877
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second25
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second1879
_______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 second1879
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second1883
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second8
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second134
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second1
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second2
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second3
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second1889
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second8
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second25
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second19
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second3
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second1894
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second0
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second19
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second13
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second19
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second15
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second34
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second19
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second25
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second195
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second1904
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second171
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second41
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second195
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second174
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second44
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second19
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second46
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second0
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second19
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second1914
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second3
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second1916
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second1917
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second19
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second182
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second39______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 second1922
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second19
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second25
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second195
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second176
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second195
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second189
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second195
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second15
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second61
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second195
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second25
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second184
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second65
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second184
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second67
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second195
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second46
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second0
________ 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 second195
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second205
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second195
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second207
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second15
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second78
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second184
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second80
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second19
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second46
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second19
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second15
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second1955
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second3
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second1957
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second195
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second1904
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second1708
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second1709
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second1962____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 second41
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second19
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second207
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second195
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second1904______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 second1709
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second1962
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second1720
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second1721
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second1709
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second1962
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second1724
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second1725
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second8
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second46
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second0
_______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 second8
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second1732
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second134
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second1
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second1987
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second8
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second25
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second19
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second3
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second1992
_______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 second46
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second0
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second1999
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 second2000
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second2001
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second2002
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second0
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second2004
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second2____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 second1742
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second2008
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second151
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second25
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second8
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second2012
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second2013
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second1879
_______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 second2017____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 second8
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second15
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second39____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 second2023
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second8
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second25
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second19
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second2027
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second39
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second171
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second41
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second19
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second174
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second44
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second8
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second46
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second0
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second8
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second2038
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second1770
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second2040
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second1770
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second2012
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second44
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second8
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second182
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second39____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 second2048
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second2047
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second2050
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second2008
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second44
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second2047
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second2054
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second8
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second25
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second1917
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second19____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 second57____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 second19
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second15
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second39
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second2006
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second1855
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second2047
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second2072
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second2038
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second151
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second19
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second25
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second195
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second2040
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second1770
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second2038
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second44
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second195
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second2038
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second1770
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second2006
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second1855
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second2047
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second2088
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second19
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second46
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second0
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second19____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 second19
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second207
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second15
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second39
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second2006
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second1855
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second2047
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second2072
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second2040
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second2107
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second2108
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second2006
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second1855
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second2047
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second2112
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second2038
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second151
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second195
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second2040
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second1770
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second2006
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second1855
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second2047
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second2088
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second8
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second46
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second8
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second15
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second39____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 second2128
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second2012
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second151
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second19
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second2027
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second39
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second219
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second41
_______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 second19
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second2027
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second225
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second1742
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second2038
_______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 second2146
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second1742
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second2040
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second44
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second46
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second0
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second2152
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second2006
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second1770
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second2155
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second2156
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second2157
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second1770
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second2159
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second39
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second2006
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second41
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second2______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 second1742
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second2157
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second151
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second0
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second2169
1] Initialize both first and second smallest as INT_MAX first = second = INT_MAX 2] Loop through all the elements. a] If the current element is smaller than first, then update first and second. b] Else if the current element is smaller than second then update second2170
đầ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 second1
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ự