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

Input: zeal fan 52 31 heal 22 track 12

Which of the following will be the IIIrd step?


A

fan 52 heal 31 track 22 zeal 12

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

fan 52 heal 31 zeal 22 track 12

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

fan 52 heal zeal 31 22 track 12

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

fan 52 heal 31 track zeal 22 12

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

fan 52 heal zeal 31 22 track 12


From the last step it is clear that words are arranged in alphabetical order and nos. are arranged in decreasing order alternately. To obtain this output first the word, which comes first in dictionary, comes to the first place and the rest shift one place rightwards. In the next step the largest no. comes to the second place and the rest shift one place rightwards. These two steps occur alternately until the last step is obtained.


flag
Suggest Corrections
thumbs-up
0
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
Rajaram Maharaj vs Aurangzeb
HISTORY
Watch in App
Join BYJU'S Learning Program
CrossIcon