Cho một mảng có tất cả các phần tử riêng biệt, tìm ba phần tử lớn nhất. Độ phức tạp thời gian dự kiến là O[n] và không gian thừa là O[1]
ví dụ
Input: arr[] = {10, 4, 3, 50, 23, 90} Output: 90, 50, 23
Khuyến khích. Vui lòng thử cách tiếp cận của bạn trên {IDE} trước, trước khi chuyển sang giải pháp
Dưới đây là thuật toán
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.
Dưới đây là việc thực hiện thuật toán trên
C
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.12
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.13
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.14
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.15
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.16
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.17
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.0
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.1
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.0
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.3
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.4
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.5
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.0
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.7
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.14
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.5
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.10
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.5
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.12
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.13
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.5
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.4
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.16
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.17
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.18
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.19
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.10
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.16____212____213
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.5
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.15
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.14
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.5
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.18
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.5
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.120
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.121
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.5
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.4
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.16____6125
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.16____112
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.128
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.16____14
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.131
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.132
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.131____6134
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.131
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.136
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.16____215
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.14
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.16____6141
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.16____6143
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.12
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.145
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.16____14
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.131
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.132
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.131____6151
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.16____215
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.14
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.16____6143
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.12
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.158
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.131
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.160
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.5
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.15
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.14
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.5
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.17____118
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.167
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.168
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.15
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.14
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.14
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.172
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.0
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.174
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.4
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.5
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.0
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.178
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.5
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.0
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.01
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.02
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.03
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.02
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.05
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.5
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.07
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.5
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.12
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.10
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.15
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.12
Java
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.13
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.14
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.15
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.16
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.17
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.4
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.5
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.15
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.5
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.22
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.16
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.17
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.0
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.1
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.0
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.3
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.5
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.4
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.16____10
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.7
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.34
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.16____110
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.16____112
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.39____140
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.41
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.16____14
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.131
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.45____119
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.10
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.131
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.12____213
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.16____215
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.53
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.16____155
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.16____6120
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.58
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.59
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.60
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.16____14
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.131
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.64
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.131
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.66
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.131
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.12
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.128
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.131
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.4
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.72____6132
_______172____6134
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.72____6136
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.131
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.15
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.53
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.131
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.82
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.131
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.84
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.131
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.143
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.12
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.145
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.131
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.4
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.72____6132
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.72____6151
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.131
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.15
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.53
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.131
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.143
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.12
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.158
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.72____6160
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.16____215
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.53
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.16
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.108
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.109
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.110
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.111
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.112
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.113
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.114
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.113
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.116
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.5
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.15
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.15
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.5____1121
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.5
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.123
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.22
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.16
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.126
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.5
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.4
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.16
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.0
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.131
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.132
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.133
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.134
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.133
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.136
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.133
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.138
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.133
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.140
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.133
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.136
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.143
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.16
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.0
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.146
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.16____107
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.5
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.15
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.15
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.152
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.153/div>
Python3
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.154
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.155
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.156
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.157
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.15
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.159
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.160
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.161
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.162
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.15
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.5
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.165
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.5____1160
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.5
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.12
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.39
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.40
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.172
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.173
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.16____1175____118
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.19
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.41
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.16____212
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.173
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.5
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.183
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.184
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.185
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.184
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.187
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.184
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.189
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.190
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.173
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.5
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.120 ________ 1194
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.195 ________ 1196
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.18
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.59 ________ 1199
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.173
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.16____2102
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.16____2104
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.16____112
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.107
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.108
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.131
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.183
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.184
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.187
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.131
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.187
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.184
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.185
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.131
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.185____1184
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.120
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.108
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.15
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.16____2124
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.16____2126
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.16____2128
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.129
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.108
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.131
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.183
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.184
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.187
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.131
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.187
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.184
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.120
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.108
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.16____2128
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.142
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.131
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.183
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.184
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.120
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.173
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.5
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.175
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.18
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.151
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.133
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.153
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.154
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.15
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.156
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.157
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.184
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.159
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.132
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.133
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.134
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.133
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.136
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.133
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.138
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.133
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.140
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.133
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.136
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.171
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.172
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.184
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.174
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.175
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.176
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.15
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.178
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.179
C#
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.180
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.181
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.182
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.183
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.15
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.16
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.17
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.4
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.173
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.5
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.190
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.5____2192
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.5
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.22
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.16
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.17
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.0
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.198
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.199
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.0
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.3
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.5
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.4
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.16____10
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.7
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.173
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.16____61209
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.16____112
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.13
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.16____14
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.131
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.1216______61217
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.10
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.131
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.12____213
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.16____215
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.108
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.16____61226
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.16____6120
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.121
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.16____14
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.131____61233
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.131____61235
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.131
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.12
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.128
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.131
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.4
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.72____6132
_______172____6134
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.72____6136
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.131
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.15
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.108
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.131____61251
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.131____61253
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.131
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.143
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.12
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.145
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.131
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.4
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.72____6132
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.72____6151
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.131
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.15
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.108
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.131
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.143
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.12
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.158
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.72____6160
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.16____215
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.108
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.16____61216____1109
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.110
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.1280
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.112
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.113
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.114
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.1280
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.113
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.116
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.5
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.15
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.15
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.5____61291
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.5
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.123
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.22
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.16
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.1296
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.5
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.4
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.16
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.0
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.1301
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.1302
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.0
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.1304
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.16
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.0
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.1307
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.16____107
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.5
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.15
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.15
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.15
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.1314
PHP
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.1315
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.1316
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.181
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.15
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.1319
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.1320
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.1321
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.17
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.1323
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.133
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.1325
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.41
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.4
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.5
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.1329
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.13
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.1331
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.13
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.1333
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.13
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.1335
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.13
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.15
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.5____61339
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.5____61341
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.5
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.12
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.18
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.1325
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.1346
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.5
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.4
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.16____61350
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.19____213
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.16____212____213
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.5
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.15
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.15
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.5
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.1335
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.184
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.1331
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.184
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.1333
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.1365
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.5
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.120
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.18
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.1329
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.1370
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.1329
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.1372
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.1325
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.13
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.1329
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.1376
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.5
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.4
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.16____61380
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.16____61235
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.16
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.12
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.18
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.1323
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.159
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.1329
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.1389
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.1331
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.41
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.16____14
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.131
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.1335
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.184
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.1333
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.13
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.131
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.1333
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.184
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.1331
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.13
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.131
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.1331
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.184
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.1323
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.159
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.1329
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.1410
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.16____215
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.15
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.16____61415
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.16____61417
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.16_______6143
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.12
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.18
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.1323
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.159
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.1329
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.1389
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.1333
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.41
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.16____14
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.131
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.1335
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.184
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.1333
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.13
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.131
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.1333
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.184
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.1323
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.159
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.1329
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.1410
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.16____215
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.15
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.16_______6143
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.12
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.18
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.1323
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.159
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.1329
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.1389
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.1335
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.41
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.131
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.1335
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.184
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.1323
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.159
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.1329
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.1410
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.5
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.15
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.15
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.5
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.1350
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.109____61468
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.53
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.1331
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.133
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.113
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.133
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.1333
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.133
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.113
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.133
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.1335
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.13
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.15
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.15
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.15
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.1483
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.1323
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.184
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.1486
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.1487
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.1488
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.1489
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.1490
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.184
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.1492
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.18
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.1323
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.10
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.17____61323____1133
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.1490
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.10
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.15
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.1502
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.1503
đầu ra.
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.1
Cách tiếp cận khác. Một cách hiệu quả để giải quyết vấn đề này là sử dụng bất kỳ thuật toán sắp xếp O[nLogn] nào và chỉ cần trả về 3 phần tử lớn nhất cuối cùng
C++
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.1504
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.181
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.1506
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.182
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.1508
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.1509
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.15
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.16
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.1512
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.0
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.1
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.0
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.1516
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.4
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.5
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.1519
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.1520
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.1521____61522
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.108
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.5
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.0
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.1526
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.108
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.5
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.120____118
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.0
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.1532
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.5
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.4
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.1488
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.16____112
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.1538
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.16____14
_______6131____112____61543
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.131____61545
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.72____61547
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.72
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.1549
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.113
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.13
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.72____61553
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.72____61555
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.131
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.15
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.16____215
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.16____6143
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.131
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.1563
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.13
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.5
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.15
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.15
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.173
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.1291
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.0
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.174
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.4
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.5
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.0
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.1575
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.5
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.0
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.01
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.02
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.03
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.02
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.05
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.5____61584
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.15
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.15
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.1587
Java
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.1588
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.181
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.15
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.15
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.156
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.1593
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.156
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.1595
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.15
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.16
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.1598
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.173
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.16
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.1512
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.0
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.1603
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.5
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.4
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.16____61607____61520
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.1609____61522
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.16
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.0
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.146
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.16
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.0
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.1616____159
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.1618
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.136
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.13
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.108
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.16______6120
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.18
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.0
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.1626
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.136
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.1628
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.1488
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.131
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.12____61632
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.1633
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.1634
_______172____112____61637
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.72____61545
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.1640
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.1547
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.1521
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.1643
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.113
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.10
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.1521____61647
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.1521____61555
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.72
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.15
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.131
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.15
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.1488
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.143
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.72____61563
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.13
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.16____215
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.108
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.5
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.15
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.173
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.34
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.1291
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.5
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.123
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.22
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.16
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.1671
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.5
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.4
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.16____61675
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.1302
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.1677
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.16
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.0
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.1680
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.132
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.133
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.1683
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.133
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.136
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.1686
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.136
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.133
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.1683
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.133
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.1691
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.133
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.1693
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.133
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.1695
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.133
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.59___1314
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.16____61702
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.5
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.15
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.173
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.15
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.1707
đầu ra.
1] Initialize the largest three elements as minus infinite. first = second = third = -∞ 2] Iterate through all elements of array. a] Let current array element be x. b] If [x > first] { // This order of assignment is important third = second second = first first = x } c] Else if [x > second] { third = second second = x } d] Else if [x > third] { third = x } 3] Print first, second and third.1
Vui lòng viết bình luận nếu bạn thấy bất cứ điều gì không chính xác hoặc bạn muốn chia sẻ thêm thông tin về chủ đề thảo luận ở trên
Làm cách nào để tìm phần tử lớn nhất trong mảng JavaScript?
Lấy phần tử lớn nhất của mảng .
mảng const = [1, 2, 3]; . rút gọn[[a, b] => Toán. max[a, b], -Infinity]; . .
hàm getMaxOfArray[numArray] { return Toán học. tối đa. áp dụng [null, numArray]; .
mảng const = [1, 2, 3]; . tối đa [. mảng];
Làm cách nào tôi có thể lấy các phần tử từ mảng có tổng bằng với giá trị đã cho?
Chương trình sẽ yêu cầu người dùng nhập vào mảng số nguyên [“Mảng đầu vào”] và tổng cần thiết [“Tổng bắt buộc”]. Đầu ra [“Đầu ra”] sẽ liệt kê số lượng số nguyên nhỏ nhất từ mảng đầu vào tính tổng “Tổng bắt buộc”
Làm cách nào để tìm ba số lớn nhất trong một mảng JavaScript?
Phương pháp 2. Sử dụng Toán học. chức năng tối đa
. max[] và chúng tôi nhận được số cao nhất trong 3 số. Hàm này có thể nhận nhiều đối số chứ không chỉ 3.