CameraIcon
CameraIcon
SearchIcon
MyQuestionIcon
MyQuestionIcon
1
You visited us 1 times! Enjoying our articles? Unlock Full Access!
Question

If the second step for an input is as given below, what will be the fifth step for the same input?

Step II: 18 49 32 88 69 149 101 217


A

18 32 69 49 88 101 149 217

No worries! We‘ve got your back. Try BYJU‘S free classes today!
B

18 32 49 69 101 88 149 217

No worries! We‘ve got your back. Try BYJU‘S free classes today!
C

18 32 49 88 69 149 101 217

No worries! We‘ve got your back. Try BYJU‘S free classes today!
D

None of these

Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
Open in App
Solution

The correct option is D

None of these


Here the rule followed is:

Step I: The smallest number becomes first and the remaining numbers shift one position rightward. In case, the first number is small then the next number just larger than it will become second and the rest will shift one position rightward and so on.

Step II: The largest number among given numbers becomes last and the remaining numbers shift one position leftward. In case, the largest number is first from the right end, the second largest number replaces the second number from the right end, and so on.

These steps are repeated alternately till all the numbers get arranged in ascending order and that will be the last step for that particular input.


flag
Suggest Corrections
thumbs-up
0
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
QUANTITATIVE APTITUDE
Watch in App
Join BYJU'S Learning Program
CrossIcon