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 III: bond 86 goal 12 33 like high 46
Step IV: bond 86 goal 46 12 33 like high
Step V: bond 86 goal 46 high 12 33 like.
Step VI: bond 86 goal 46 high 33 12 like.
Step VII: bond 86 goal 46 high 33 like 12
In the first step, the word that comes first in the alphabetical order comes to the first and the rest of the shift rightward. In the next step largest number occupies the next place and the rest of the shift rightward. This goes on alternately till the words get arranged in the reverse alphabetical order and number in a descending order.
According to given question,
Input : shower fall water 34 51 67 98 goal
Step I : water shower fall 34 51 67 98 goal
Step II : water 98 shower fall 34 51 67 goal
Step III : water 98 shower 67 fall 34 51 goal
Step IV : water 98 shower 67 goal fall 34 51
Step V : water 98 shower 67 goal 51 fall 34
In the first step, the word that comes first in the alphabetical order comes to the first and the rest of the shift rightward. In the next step largest number occupies the next place and the rest of the shift rightward. This goes on alternately till the words get arranged in the reverse alphabetical order and number in a descending order.
Step II: war 58 box cart 33 49 star 24
Step III: war 58 star box cart 33 49 24
Step IV: war 58 star 49 box cart 33 24
Step V: war 58 star 49 cart box 33 24
Step VI: war 58 star 49 cart 33 box 24
In the first step, the word that comes first in the alphabetical order comes to the first and the rest of the shift rightward. In the next step largest number occupies the next place and the rest of the shift rightward. This goes on alternately till the words get arranged in the reverse alphabetical order and number in a descending order.
As per given question,
Input : play over 49 37 12 match now 81
Step I : play 81 over 49 37 12 match now
Step II : play 81 over 49 now 37 12 match
Step III : play 81 over 49 now 37 match 12
Since the line is already arranged, there will be no step.
In the first step, the word that comes first in the alphabetical order comes to the first and the rest of the shift rightward. In the next step largest number occupies the next place and the rest of the shift rightward. This goes on alternately till the words get arranged in the reverse alphabetical order and number in a descending order.
we can't proceed backward so cannot be determined
In the first step, the word that comes first in the alphabetical order comes to the first and the rest of the shift rightward. In the next step largest number occupies the next place and the rest of the shift rightward. This goes on alternately till the words get arranged in the reverse alphabetical order and number in a descending order.
As per given question,
Input : any how 49 24 far wide 34 69
Step I: wide any how 49 24 far 34 69
Step II: wide 69 any how 49 24 far 34
Step III: wide 69 any how 49 24 far 34
Step IV: wide 69 any 49 how 24 far 34
Step V: wide 69 how 49 far 24 any 34
Step VI: wide 69 how 49 far 34 any 24
Step V be 2nd last step.
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 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.
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.
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 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
Comments
There are no comments.Copyright ©CuriousTab. All rights reserved.