Question
Which of the following will be the next step for the
followinginput? Input: 50 26 82 28 43 94 68 63 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
Here the rule followed is: Step I: The smallest number interchanges its position with the first number. [In case the first number is smallest then the next number just larger than it interchanges its position with the second number.] Step II: The largest number interchanges its position with the last number. [In case the largest number is first from right end, the second largest number interchanges its position with the second number from right and so on.] These steps are repeated alternately till the numbers get arranged in ascending order and that will be the last step for the particular input. Input: 50 26 82 28 43 94 68 63 Β Step I: 26 50 82 28 43 94 68 63
Amit and Sara started a business with the investments of Rs. 20,000 and Rs. 30,000 respectively. After one year, Amit increases his investment by Rs. 5,...
P and Q entered into partnership with Rs. 8000 and Rs. 12000 respectively. After 4 months P withdrew `1/4` of his stock but after 4 months more he put b...
Two firms, X and Y, began a joint venture by investing in a ratio of 9:16. After six months, Firm Y withdrew its entire investment. At the end of the ye...
M and N started a business by investing Rs.4000 and Rs.5000 respectively. After 7 months, M and N increased their investments by 30% and Rs.2400 respect...
βAβ and βBβ invested Rs. 4800 and Rs. 3600, respectively in a business, together. After 6 months, βAβ withdrew 25% of his initial investment...
βAβ, βBβ and βCβ started a business by investing Rs. 3,000, Rs. 3,600 and Rs. 2,400, respectively. After 6 months, βBβ decreased his inv...
A, B and C invest in a partnership in the ratio 8:5:10 and investment of A is Rs.200 less than investment of C. Partner B invests for 1/5th and A and C ...
βAβ invested Rs. 3500 in a business. βBβ joined x months later with an investment of Rs. 2500. If at the end of the year, Bβs share in the pro...
βCβ and βDβ entered into a business by investing Rs. βyβ and Rs. βy + 300β, respectively. After 10 months βCβ invested Rs. 400 more ...
P and Q started a business by investing Rs.5600 and Rs.4000 respectively. After 6 months, Q increased his investment by a certain percentage such that a...