A word and number arrangement machine when given an input line of words and numbers rearranges them following a particular rule in each step. The following is an illustration of input and rearrangement. (All the numbers are two-digit numbers.)
Input : 42 prey burn 78 21 melt gulp 96 83 head
Step I : ban 23 42 prey 78 melt gulp 96 83 head
Step II : gap 44 ban 23 prey 78 melt 96 83 head
Step III : had 80 gap 44 ban 23 prey melt 96 83
Step IV : mat 85 had 80 gap 44 ban 23 prey 96
Step V : pay 98 mat 85 had 80 gap 44 ban 23
Step V is the last step of the above arrangement as the intended output of arrangement is obtained.
As per the rules followed in the given steps, find the appropriate steps for the given input.
Input : 61 rust 33 colt 86 four torn 28 49 leap
Which of the following represents the element that is fifth to the right of 'cat' in step III ?
In step I, the word with the smallest first letter alphabetically is placed at first position and the all the middle letters are replaced by 'a'. The smallest number is placed at second position and it is increased by 2.
Similar pattern is followed in remaining steps and finally the words and numbers are arranged in descending order alternatively.
Input : 61 rust 33 colt 86 four torn 28 49 leap
Step I : cat 30 61 rust 33 86 four torn 49 leap
Step II : far 35 cat 30 61 rust 86 torn 49 leap
Step III : lap 51 far 35 cat 30 61 rust 86 torn
Step IV : rat 63 lap 51 far 35 cat 30 86 torn
Step V : tan 88 rat 63 lap 51 far 35 cat 30
Step V is the last step of the arrangement.
Element that is 5th to the right of 'cat' in step III = 'torn'
=> Ans - (A)
Create a FREE account and get: