Discussion :: Sequential Output Training
-
Study the following information carefully and answer the given questions: 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:Input: 25 280 345 36 93 147 550Step I: 550 280 345 36 93 147 25Step II: 550 345 280 36 93 147 25Step III: 550 345 280 147 93 36 25This is the final arrangement and step III is the last step for this input.How many steps will be required to get the final output from the following input?Input: 78 293 585 740 64 132 26
Answer : Option A
Explanation :
Numbers are getting arranged in descending order.
The largest of the given number interchanges its place with the first number. IN case the largest number is already arranged, the second largest is interchanged with the number next to the largest number, and so on until the numbers are arranged in descending order.
Be The First To Comment