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

# What will be the last step for the following input? Input: 162 63 49 93 89 141 26 71

A

26 49 71 63 89 93 141 162

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

26 49 63 71 93 89 141 162

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

26 49 63 71 89 93 141 162

Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
D

Can’t be determined

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

None of these

No worries! We‘ve got your back. Try BYJU‘S free classes today!
Open in App
Solution

## The correct option is C 26 49 63 71 89 93 141 162 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.

Suggest Corrections
0
Join BYJU'S Learning Program
Related Videos
Factorising Numerator
QUANTITATIVE APTITUDE
Watch in App
Explore more
Join BYJU'S Learning Program