Question
Which of the following is the last step for the
following input? Input: 310, 105, 45, 241, 417, 36, 281 Directions: A number arrange┬а 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: 207, 59, 324, 23, 135, 173, 312 Step I: 207, 59, 312, 23, 135, 173, 324 Step II: 23, 59, 312, 207, 135, 173, 324 Step III: 23, 59, 173, 207, 135, 312, 324 Step IV: 23, 59, 135, 207, 173, 312, 324 Step V: 23, 59, 135, 173, 207, 312, 324 This is the final arrangement and step V is the last step for this input.Solution
Here the rule followed is: Numbers are getting arranged in ascending order. The largest no. interchanges with the last-position no. Then the smallest no. interchanges with the first-position no. Next, the second largest no. interchanges with the second last position no. And so on.[Note: In step IV it is clear that when second smallest no.. is already set, the no. just larger to it interchanges with the next no.. From this it is clear that in odd step we should deal with larger no. and in even step we should deal with smaller no.] Last step can be found directly as the machine sets the given no. in ascending order.
рдирд┐рдореНрдирд▓рд┐рдЦрд┐рдд рдореЗрдВ рд╕реЗ Firm рд╢рдмреНрдж рдХрд╛ рд╡рд┐рддреНрддреАрдп рд╢рдмреНрджрд╛рд╡рд▓реА рдореЗрдВ рдХреНрдпрд╛...
рдирд┐рдореНрдирд▓рд┐рдЦрд┐рдд рд╡рд┐рдХрд▓реНрдкреЛрдВ рдореЗрдВ рд╕реЗ Prepaid expenses рд╢рдмреНрдж рдХрд╛ рдХреМрди рд╕рд╛ рдкрд░реНрдпрд╛рдп рд╣я┐╜...
рдлрдВрд╕реЗ рдХрд░реНрдЬ рдХреЗ рдПрд╡рдЬ рдореЗрдВ рдкреНрд░рд╛рд╡рдзрд╛рди рдХрдо рд╣реЛрдиреЗ рдФрд░ рд╢реБрджреНрдз рдмреНрдпрд╛рдЬ рдорд╛рд░реНрдЬ...
рдирд┐рдореНрдирд▓рд┐рдЦрд┐рдд рдореЗрдВ рд╕реЗ deterioration рдХрд╛ рдкрд░реНрдпрд╛рдп рдХреМрди рд╕рд╛ рд╢рдмреНрдж рдирд╣реАрдВ рд╣реИ ?
рд╕рдордп рдкрд░ рдЕрдЪрд╛рдирдХ рдирд┐рд░реАрдХреНрд╖рдг рдХреБрдЫ рд╕реНрд╡рддрдВрддреНрд░ рдЕрдзрд┐рдХрд╛рд░рд┐рдпреЛрдВ рджреНрд╡рд╛рд░рд╛ рдХрд┐рдп...
The accounts of the budget are scrutinized by the Public Accounts Committee of the Indian Parliament.┬а
рджрд┐рдП рдЧрдП рдкреНрд░рддреНрдпреЗрдХ рдкреНрд░рд╢реНрди рдореЗрдВ рдПрдХ рд╣рд┐рдВрджреА рдХрд╛ рд╡рд╛рдХреНрдп рджрд┐рдпрд╛ рдЧрдпрд╛ я┐╜...
Ambiguous рдХреЗ рд▓рд┐рдП рд▓рд┐рдП рд╕рд╣реА рдкрд╛рд░рд┐рднрд╛рд╖рд┐рдХ рд╢рдмреНрдж рд╣реИ
рдореБрдХреНрдд рд╡рд┐рджреНрдпрд╛рд▓рдп рдРрд╕реЗ рдЫрд╛рддреНрд░реЛрдВ рдХреЗ рд▓рд┐рдП рдПрдХ рдмрд╣реБрдд рдЕрдЪреНрдЫрд╛ рдЕрд╡рд╕рд░ рдк...
рджрд┐рдП рдЧрдП рдкреНрд░рддреНрдпреЗрдХ рдкреНрд░рд╢реНрди рдореЗрдВ рдПрдХ рдЕрдВрдЧреНрд░реЗрдЬреА рдХрд╛ рд╡рд╛рдХреНрдп рджрд┐рдпрд╛ рдЧрдпрд╛ я┐╜...