Question
Input: youth 39 stoke 47
hot flow 94 55 How many steps will be required to complete the rearrangement? 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 : sand draw 18 23 file 95 true 38 Step I : draw sand 18 23 file 95 true 38 Step II : draw 95 sand 18 23 file true 38 Step III : draw 95 file sand 18 23 true 38 Step IV : draw 95 file 38 sand 18 23 true Step V : draw 95 file 38 sand 23 18 true Step VI : draw 95 file 38 sand 23 true 18 and step VI is the last step of the rearrangement 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.Solution
How words and numbers are arranged in the final step: Words are arranged in ascending order and numbers are arranged in descending order in the final step. What machine is doing in each step: In the first step one word is getting arranged from the left side in ascending order and in the second step one number is getting arranged from the left side in descending order and so on. Input: youth 39 stoke 47 hot flow 94 55 Step I: flow youth 39 stoke 47 hot 94 55 Step II: flow 94 youth 39 stoke 47 hot 55 Step III: flow94 hot youth 39 stoke 47 55 Step IV: flow94 hot 55 youth 39 stoke 47 Step V: flow94 hot 55 stoke youth 39 47 Step VI: flow94 hot 55 stoke 47 youth 39 Step 6th is the last step So total 6 steps are needed to complete the rearrangement.
A shopkeeper sold a book at a loss of 14%. If the selling price had been increased by ₹100, there would have been a gain of 6%. What was the cost pric...
How is self-generated goodwill recognized in accounting?
Consider the following statements:
1. The Preamble of the Constitution is based on the ‘Objective Resolution’ drafted and moved by Pandit N...
He was hanged on July 31, 1940, for assassinating Michael O’Dwyer in London, avenging the 1919 Jallianwala Bagh massacre. He was also associated with ...
Consider the following statements about Lokpal:
1.The Lokpal was established under the Lokpal and Lokayuktas Act, 2013, to address corruption amo...
According to “Payment of gratuity Act 2018 (Amendment)” what is maximum amount of gratuity is?
Consider the following statements regarding the evolution of budget in India:
1. System of budget was introduced during the tenure of Lord Cannin...
Two trains of same length are running in parallel tracks in the same direction with speed 70 km/hr and 120 km/hr respectively. The latter completely cro...
What does API stand for in computer programming?