Question
How many steps are required to complete the
rearrangement of the given input? 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: 22 mother 85 63 or dear 32 combine 43 10 super never Step I: 10 mother 85 63 or dear 32 combine 43 super never 22 Step II: 32 10 mother 85 63 or dear combine super never 22 43 Step III: 63 32 10 mother or dear combine super never 22 43 85 Step IV: combine 63 32 10 mother or super never 22 43 85 dear Step V: mother combine 63 32 10 or super 22 43 85 dear never Step VI: or mother combine 63 32 10 22 43 85 dear never super And step VI is the last step of the above input. As per the rules followed in the above steps, find out in each of the following questions, the appropriate step for the given input. INPUT : “course 65 10 race 85 in 20 heal today 52 91 done”Solution
INPUT : course 65 10 race 85 in 20 heal today 52 91 done Step I: 10 course 65 race 85 in heal today 52 91 done 20 Step II: 52 10 course race 85 in heal today 91 done 20 65 Step III: 85 52 10 course race in heal today done 20 65 91 Step IV: course 85 52 10 race in heal today 20 65 91 done Step V: heal course 85 52 10 race today 20 65 91 done in Step VI: race heal course 85 52 10 20 65 91 done in today How words are arranged in the final step: Arrangement starts from the middle of the arrangement. First the smallest number and then second smallest number on the right of the smallest number. Then, third smallest number is on the immediate left of the first number and fourth smallest number on the immediate right of the second smallest number and so on. After all the numbers get arranged then, the first word(alphabetically) is to the left of the first arranged number and then second word is to immediate right of the last arranged number. Then, the third word is to the left of the first arranged word and fourth word to the immediate right of the second arranged word so on. What machine is doing in each step: The machine first rearranges numbers and then words. In the first step smallest number is getting arranged from the left side and the second smallest number is getting arranged from the right side. In each of the further step same procedure is followed as in the previous step and number and words arranged in the previous step are shifting one place to their left and right respectively.
What was highlighted as India’s current clean energy capacity within its 500 GW power grid during the India–Canada Ministerial Dialogue?Â
- What is the title of the book released by MeitY promoting circular economy innovation?
- How many crore MUDRA loans have been disbursed in 10 years since launch?
Sarwagya Singh Kushwaha achieved what FIDE rating to become the world’s youngest rated chess player?Â
Which countries signed a defence pact allowing joint military drills?
What does 'UNDP' stand for?
Which initiative by the government aims to promote chemical-free farming practices in India?
What is the primary focus of the "Baltic Sentry" mission launched by NATO?
Who won India’s first gold at the 2025 ISSF Junior World Cup in Germany?
Which state has become the first state to adopt a water budget in a bid to come up with a solution to water scarcity in certain regions there?