If step VI is the last step of the rearrangement, and the same rule is followed for input, then which of the following will be step III for the given input? Input: nice flower 3412 costly height 4156.
A
12 nice 34 height flower costly 4156
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
B
12 nice 34 height 41 flower costly 56
No worries! We‘ve got your back. Try BYJU‘S free classes today!
C
12 nice 34 flower costly height 4156
No worries! We‘ve got your back. Try BYJU‘S free classes today!
D
12 nice flower 34 costly height 4156
No worries! We‘ve got your back. Try BYJU‘S free classes today!
Open in App
Solution
The correct option is A12 nice 34 height flower costly 4156 In Step I the least number comes to the left most portion , pushing rest of the line rightward. In Step II the word that comes last in the alphabetical order shifts to second from left, pushing again rest of the line rightward. Similarly , in step III second least number shifts to third from left. In Step IV the second from last in the alphabetical order comes to the fourth position. And this goes on alternatively till all the numbers are arranged in ascending order and the words in reverse alphabetical order.