Start learning 50% faster. Sign in now
First Pass: (5 1 4 2 8 ) –> (1 5 4 2 8 ), Here, algorithm compares the first two elements, and swaps since 5 > 1. ( 15 4 2 8 ) –> ( 14 5 2 8 ), Swap since 5 > 4 ( 1 45 2 8 ) –> ( 1 42 5 8 ), Swap since 5 > 2 ( 1 4 25 8 ) –> ( 1 4 25 8 ), Now, since these elements are already in order (8 > 5), algorithm does not swap them. Second Pass: (1 4 2 5 8 ) –> (1 4 2 5 8 ) ( 14 2 5 8 ) –> ( 12 4 5 8 ), Swap since 4 > 2 ( 1 24 5 8 ) –> ( 1 24 5 8 ) ( 1 2 45 8 ) –> ( 1 2 45 8 ) Now, the array is already sorted, but our algorithm does not know if it is completed. The algorithm needs onewhole pass withoutany swap to know it is sorted. Third Pass: (1 2 4 5 8 ) –> (1 2 4 5 8 ) ( 12 4 5 8 ) –> ( 12 4 5 8 ) ( 1 24 5 8 ) –> ( 1 24 5 8 ) ( 1 2 45 8 ) –> ( 1 2 45 8 )
139.88% of 119.89 + 1451.89 ÷ 6.01 - √196.01 = ? ÷ 3.01 + 215.98
√440.98 + (17.95% of 249.96 – 12% of 99.99) + (7.12)2 = ?
9.992 + (5.01 × 4.98) + ? = 225.03
√624.98 - ? = √(62.30 + 13.99 – 2.93)
‘A’ alone can complete a work in 12 days. ‘B’ alone can complete the same work in 24 days. If ‘A’ and ‘B’ work together for 4 days, then...
What is the area (in cm²) of a square inscribed in a circle with a radius of 10√2 cm?
(29.97%) of 9840 + ? + (45.17% of 1240) = (31.955% of 11750)
(9.013 – 15.04) = ? + 9.98% of 5399.98