Question
How many steps will be required to get the final output
from the following input? Input: 544, 653, 325, 688, 461, 231, 857 Directions : A number arrangement machine,when given a particular input, rearranges it following a particular rule. The following is the illustration of the input and the steps of arrangement: Input: 245, 316, 436, 519, 868, 710, 689 Step I: 710, 316, 436, 519, 868, 245, 689 Step II: 710, 316, 245, 519, 868, 436, 689 Step III: 710, 316, 245, 436, 868, 519, 689 Step IV: 710, 316, 245, 436, 519, 868, 689 Step IV is the last step for the given input.Solution
Here the rule followed is: The sum of the digits is calculated. Then in step I, the number with lowest sum of its digits interchanges with the first number. [If the first number has already the lowest sum of its digits then the number with second lowest sum of its digits interchanges with the second number.] The process continues until the numbers get arranged in ascendingorder on the basis of their sum of digits. Input: 544, 653, 325, 688, 461, 231, 857 (13) (14) (10) (22) (11) (6) (20) Step I: 6 14 10 22 11 13 20 Step II: 6 10 14 22 11 13 20 Step III: 6 10 11 22 14 13 20 Step IV: 6 10 11 13 14 22 20 Step V: 6 10 11 13 14 20 22 Hence, (231, 325, 461, 544, 653, 857, 688
Which of these options will keep your online information safest?
What does the acronym BIOS stand for?Â
Which input device is commonly used to control the movement of a cursor on a computer screen?
Which of the following represents billion characters?
Which of the options given below is not a type of live communication?
An AND gateÂ
In first generation of computers, they used ___________
Word processing, spreadsheet, and photo-editing are examples of________
Which generation introduced real-time and time-sharing OS?
What is a key feature of object-oriented programming?