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.
5 positive numbers are written on a piece of paper. Sum of first 3 numbers is 55 and ratio of the 4th and the 5th number is 2:3. If difference between t...
The average monthly salary of a group is ₹52,000. A new member joins earning ₹70,000, increasing the average by ₹1,000. Find the total salary of t...
- Rs. 4200 was divided between 'P', 'Q', 'R', and 'S' in the ratio 4:6:3:7, respectively. Later, 'Q' gave an amount that equals 60% of the average amount rec...
In a company, the average salary of 30 employees is ₹40,000. Out of these, the average salary of 20 employees is ₹35,000, and the average salary of ...
- Babar scored 135 runs which were 90% of the total team score. If there were 9 runs scored as extras, how many runs did the other players make?
The average weight of a group of five persons, A, B, C, D, and E is 70 kg. If another person K joins the group then the average weight of the group is d...
- There are three numbers 'u', 'v' and 'w' such that average of 'u' and 'v' is 26, average of 'v' and 'w' is 14 and average of 'u' and 'w' is 20. Find the av...
A set contains ten numbers. The average of the first six numbers is (x − 4), and the average of the last three numbers is (x + 2). The average of the...
The average of 10 numbers is 102. The average of the first 5 numbers is 78 and the average of the last 4 numbers is 46. What is the 6th number?
The mean of 7 consecutive natural numbers is 68. What is the addition of the minimum and maximum numbers?