wiz-icon
MyQuestionIcon
MyQuestionIcon
1
You visited us 1 times! Enjoying our articles? Unlock Full Access!
Question

What should be the third step of the following input?

Input: 241 123 58 361 506 23


A

506 23 58 361 123 241

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

506 23 58 123 361 241

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

506 23 361 241 123 58

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

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

506 23 361 241 123 58


From the last step, it is clear that there are two alternating series of numbers: One in descending order and the other in ascending order. When we go through:

Input to step 1, we find that the largest no. becomes the first and remaining numbers shift rightward. In the next step the smallest no. becomes the second and the rest shift rightward. These two steps continue alternately until the two alternate series are formed.


flag
Suggest Corrections
thumbs-up
0
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
Language is a Pattern
MATHEMATICS
Watch in App
Join BYJU'S Learning Program
CrossIcon