Question

# Which step number would be the following output? bus all for 52 25 jam road 15 hut stop 38 46 96 73There will be no such step. II V V1

Solution

## The correct option is B II If we look closely at the input and various steps of rearrangement it is evident that in each step one word and one number are rearranged. The word are rearranged from left in alphabetical order and the numbers are rearranged from the right in descending order but in the final step the words get arranged in alphabetical order in reverse manner and number appear in descending order. Input: for 52 all 96 25 jam road 15 hut 73 bus stop 38 46 Step I: all for 52 25 jam road 15 hut 73 bus stop 38 46 96 Step II: bus all for 52 25 jam road 15 hut stop 38 46 96 73 Step III: for bus all 25 jam road 15 hut stop 38 46 96 73 52 Step IV: hut for bus all 25 jam road 15 stop 38 96 73 52 46 Step V: jam hut for bus all 25 road 15 stop 96 73 52 46 38 Step VI: road jam hut for bus all 15 stop 96 73 52 46 38 25 Step VII: stop road jam hut for bus all 96 73 52 46 38 25 15

Suggest corrections

0 Upvotes

Similar questions
View More

People also searched for
View More