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.
Two trains approach each other at 21 kmph and 25 kmph from 2 places 230 km apart. After how many hours they will meet?
Train 'E' leaves at 9:00 PM on Wednesday from Kolkata station and reaches Bangalore station at 11:00 AM the next day, while train 'F' leaves at 8:30 PM ...
A train covers a certain distance at a speed of 40 km/h and the next same distance with a speed of 70 km/h and the next same distance with a speed of 12...
A train 200 metre long takes 20 sec to cross a man running at a speed of 4 km/hr in the direction same to that of train. What is the speed of the train?
A train 460 metres long is running at a speed of 54 km/hr. If it crosses a tunnel in 1 minute, then the length of the tunnel (in meters) is:
Train βAβ running with a speed of 45 km/h crosses a pole in 4 seconds. If the time taken by train βAβ to cross train βBβ running with a spee...
A train 450 metre long takes 60 sec to cross a man running at a speed of 7 km/hr in the direction opposite to that of train. What is the speed of the tr...
Train A running with a sped of 126 km/h crosses a vertical pole in 22 seconds. Speed of train A is 6 m/s less than speed of train B, and length of train...
Two trains of same length are running in parallel tracks in the same direction with speed 64 km/hr and 100 km/hr respectively. The latter completely cro...
Two cars start from a place with a speed of 50 km/hr at an interval of 12 minutes. What is the speed of a man coming from the opposite direction towards...