Question
How many steps would be required to get the final
output for the following input? Input: 75 25 50 40 100 70 Directions : Study the following information to answer the given questions: A number sorting machine, when given an input of numbers, rearranges the numbers in a particular manner step by step as indicated below till all the numbers are arranged in a particular order. Input: 17 56 32 70 81 25 77 92 52 23 60 97 Step I: 17 23 32 70 81 25 77 92 52 56 60 97 Step II: 17 23 32 70 81 25 77 60 52 56 92 97 Step III: 17 23 25 70 81 32 77 60 52 56 92 97 Step IV: 17 23 25 70 56 32 77 60 52 81 92 97 Step V: 17 23 25 32 56 70 77 60 52 81 92 97 Step VI: 17 23 25 32 56 70 52 60 77 81 92 97 Step VII: 17 23 25 32 52 70 56 60 77 81 92 97 Step VIII: 17 23 25 32 52 60 56 70 77 81 92 97 Step IX: 17 23 25 32 52 56 60 70 77 81 92 97 and step IX is the last step for the given input.Solution
Input: 75 25 50 40 100 70 Step I: 25 75 50 40 100 70 Step II: 25 75 50 40 70 100 Step III: 25 40 50 75 70 100 Step IV: 25 40 50 70 75 100 Since all the numbers get arranged in ascending order in step IV this is the last step for the given input.
Train 'C' running with a speed of 90 km/hr crosses a pole in 8 seconds. In how much time will train 'C' cross train 'D' whose length is 80 meters more a...
- Train 'A' having a speed of 20 m/s can cross a man in 5 seconds. The length of train 'B' is 100 metres more than the length of 'A'. If the speed of 'B' is ...
A train that is 360 metres long passes a signal post in 18 seconds. How long will it take to pass a bridge that is 240 metres long?
Two poles are positioned at a certain distance from each other. A train traveling at a speed of 90 km/hr passes the first pole in 5 seconds and reaches ...
A train moving at a speed of 72 km/h takes 12.5 seconds to pass a pole. If the train takes 24 seconds to completely cross a platform, what is the lengt...
A train crosses a bridgeΒ in 15 secs while it crosses a man standing on a platform in 8 secs. If the speed of train 108 km/hrs, then what will be the ti...
- A train, running at the speed of 72 km/h, is 300 metres long. How much time (in seconds) will it take to pass over a bridge that is 600 metres long?
- A train can cross a bridge and a pole in 7.2 seconds and 4 seconds respectively. The length of the bridge is 80 metres. Find the time taken by train to cro...
Two trains A and B, were proceeding in the same direction on parallel tracks at 24 km/hr and 78 km/hr respectively. A man noticed that it took exactly 2...
Train βXβ is travelling with a speed of 90 km/hr and crosses a vertical pole in 6 seconds. Train βYβ is 30 metres longer than βXβ and trave...