In the first step, the largest number goes on the leftmost position pushing the rest line rightward. In the next step the word that comes last in the alphabetical order occupies the second position from the left pushing the rest line rightward. Thus the number and words get arranged alternately till the numbers are place in the descending order and the words in the alphabetical order.
Input: bake never store 51 26 33 age 49
Step I: 51 bake never store 26 33 age 49
Step II: 51 age bake never store 26 33 49
Step III: 51 age 49 bake never store 33 26
Step IV: 51 age 49 bake 33 never store 26
Step V: 51 age 49 bake 33 never 26 store
In the first step, the largest number goes on the leftmost position pushing the rest line rightward. In the next step the word that comes last in the alphabetical order occupies the second position from the left pushing the rest line rightward. Thus the number and words get arranged alternately till the numbers are place in the descending order and the words in the alphabetical order.
Input: organize 19 12 stable room 35 72 house
Step I: 72 organize 19 12 stable room 35 house
Step II: 72 house organize 19 12 stable room 35
Step III: 72 house 35 organize 19 12 stable room
Step IV: 72 house 35 organize 19 room 12 stable
In the first step, the word that comes first in the alphabetical order shifts to the left most position. While the remaining line shifts rightward. In the next step, the largest number shifts to the second position from left, pushing the remaining line shifts rightward. This goes on alternately till the words get arranged in an alphabetical order and the number in a descending order at alternately position.
Input: war 52 and peace 43 16 now 24
Step I: and war 52 peace 43 16 now 24
Step II: and 52 war peace 43 16 now 24
Step III: and 52 now war peace 43 16 24
Step IV: and 52 now 43 war peace 16 24
Step V: and 52 now 43 peace war 16 24
Step VI: and 52 now 43 peace 24 war 16
In the first step, the word that comes first in the alphabetical order shifts to the left most position . While the remaining line shifts rightward. In the next step, the largest number shifts to the second position from left, pushing the remaining line shifts rightward. This goes on alternately till the words get arranged in an alphabetical order and the number in a descending order at alternately position.
We can't proceed backward.
In the first step, the word that comes first in the alphabetical order shifts to the left most position. While the remaining line shifts rightward. In the next step, the largest number shifts to the second position from left, pushing the remaining line shifts rightward. This goes on alternately till the words get arranged in an alphabetical order and the number in a descending order at alternately position.
Step IV: dear 63 few 51 16 29 yes now.
Step V: dear 63 few 51 now 16 29 yes.
Step VI: dear 63 few 51 now 29 16 yes.
Step VII: dear 63 few 51 now 29 yes 16
In the first step, the word that comes first in the alphabetical order shifts to the left most position. While the remaining line shifts rightward. In the next step, the largest number shifts to the second position from left, pushing the remaining line shifts rightward. This goes on alternately till the words get arranged in an alphabetical order and the number in a descending order at alternately position.
Input: mind new 27 35 19 59 own tower
Step I: mind 59 new 27 35 19 own tower
Step II: mind 59 new 35 27 19 own tower
Step III: mind 59 new 35 own 27 19 tower
Step IV: mind 59 new 35 own 27 tower 19
Hence steps III will be the last but one.
In the first step, the largest number goes on the leftmost position pushing the rest line rightward. In the next step the word that comes last in the alphabetical order occupies the second position from the left pushing the rest line rightward. Thus the number and words get arranged alternately till the numbers are place in the descending order and the words in the alphabetical order.
Input : always go there 39 62 47 time 24
Step I : 62 always go there 39 47 time 24
Step II : 62 always 47 go there 39 time 24
Step III : 62 always 47 go 39 there time 24
Step IV : 62 always 47 go 39 there 24 time
Hence steps III will be the last but one.
In the first step, the largest number goes on the leftmost position pushing the rest line rightward. In the next step the word that comes last in the alphabetical order occupies the second position from the left pushing the rest line rightward. Thus the number and words get arranged alternately till the numbers are place in the descending order and the words in the alphabetical order.
We can't proceed backward.
In the first step, the largest number goes on the leftmost position pushing the rest line rightward. In the next step the word that comes last in the alphabetical order occupies the second position from the left pushing the rest line rightward. Thus the number and words get arranged alternately till the numbers are place in the descending order and the words in the alphabetical order.
Step III: 84 for 56 29 17 won loss game
Step IV: 84 for 56 game 29 17 won loss
Step V: 84 for 56 game 29 loss 17 won.
In the first step, the largest number goes on the leftmost position pushing the rest line rightward. In the next step the word that comes last in the alphabetical order occupies the second position from the left pushing the rest line rightward. Thus the number and words get arranged alternately till the numbers are place in the descending order and the words in the alphabetical order.
Step III: 86 box 63 18 gear card 51 new
Step IV: 86 box 63 card 18 gear 51 new
Step V: 86 box 63 card 51 18 gear new. Step VI: 86 box 63 card 51 gear 18 new. Hence 6 ? 3 = 3 more steps will be required.
In the first step, the largest number goes on the leftmost position pushing the rest line rightward. In the next step the word that comes last in the alphabetical order occupies the second position from the left pushing the rest line rightward. Thus the number and words get arranged alternately till the numbers are place in the descending order and the words in the alphabetical order.
Step IV: 59 bend 46 card 14 27 win now
Step V: 59 bend 46 card 27 14 win now
Step VI: 59 bend 46 card 27 now 14 win
Since the line is already arranged, there will be no step VII
Comments
There are no comments.Copyright ©CuriousTab. All rights reserved.