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 III: years 92 ultra 15 23 strive house 39
Step IV: years 92 ultra 39 15 23 strive house
Step V: years 92 ultra 39 strive 15 23 house
Step VI: years 92 ultra 39 strive 23 15 house
Step VII: years 92 ultra 39 strive 23 house 15
Hence 7 ? 3 = 4 more steps will be required.
In the first step, the largest number comes to the first position and the remaining line shift rightward. In the next step the word that comes first in the alphabetical order goes on to occupy the second position pushing the rest of the shift rightward. This goes alternately till all the number are arranged in a descending order and all the words in alphabetical at alternate positions.
Input : 14 35 when they came 61 48 home
Step I : 61 14 35 when they came 48 home
Step II : 61 came 14 35 when they 48 home
Step III : 61 came 48 14 35 when they home
Step IV : 61 came 48 home 14 35 when they
Step V : 61 came 48 home 35 14 when they
Step VI : 61 came 48 home 35 they 14 when
In the first step, the largest number comes to the first position and the remaining line shift rightward. In the next step the word that comes first in the alphabetical order goes on to occupy the second position pushing the rest of the shift rightward. This goes alternately till all the number are arranged in a descending order and all the words in alphabetical at alternate positions.
Step II : 75 down 16 24 farm eager 62 sky
Step III : 75 down 62 16 24 farm eager sky
Step IV : 75 down 62 eager 16 24 farm sky
Step V : 75 down 62 eager 24 16 farm sky
Step VI : 75 down 62 eager 24 farm 16 sky
Hence 6 - 2 = 4 more steps will be required.
In the first step, the largest number comes to the first position and the remaining line shift rightward. In the next step the word that comes first in the alphabetical order goes on to occupy the second position pushing the rest of the shift rightward. This goes alternately till all the number are arranged in a descending order and all the words in alphabetical at alternate positions.
we can't proceed backward and cannot be determined
In the first step, the largest number comes to the first position and the remaining line shift rightward. In the next step the word that comes first in the alphabetical order goes on to occupy the second position pushing the rest of the shift rightward. This goes alternately till all the number are arranged in a descending order and all the words in alphabetical at alternate positions.
Input : power fail now 52 24 75 gate 34
Step I : 75 power fail now 52 24 gate 34
Step II : 75 fail power now 52 24 gate 34
Step III : 75 fail 52 power now 24 gate 34
Step IV : 75 fail 52 gate power now 24 34
Step V : 75 fail 52 gate 34 power now 24
Step VI : 75 fail 52 gate 34 now power 24
Step VII : 75 fail 52 gate 34 now 24 power
Hence step VI will be the last but one.
In the first step, the largest number comes to the first position and the remaining line shift rightward. In the next step the word that comes first in the alphabetical order goes on to occupy the second position pushing the rest of the shift rightward. This goes alternately till all the number are arranged in a descending order and all the words in alphabetical at alternate positions.
Input: how was your stay 56 25 36 64
Step I: 64 how was your stay 56 25 36
Step II: 64 how 56 was your stay 25 36
Step III: 64 how 56 stay was your 25 36
Step IV: 64 how 56 stay 36 was your 25
Step V: 64 how 56 stay 36 was 25 your
Since the line gets fully arranged in step V there will be no step VI
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 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 : 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.
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.
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
Comments
There are no comments.Copyright ©CuriousTab. All rights reserved.