Discussion of Question with ID = 058 under Passwords-and-Inputs

This is the discussion forum for this question. If you find any mistakes in the solution, or if you have a better solution, then this is the right place to discuss. A healthy discussion helps all of us, so you are requested to be polite and soft, even if you disagree with the views of others. The question and its current solution has also been given on this page.

Advertisement

Question

"06 68 78 90 05 94 43 29" is re-arranged according to a particular rule, in the steps mentioned below.

  1. 05 68 78 90 06 94 43 29
  2. 05 68 78 90 06 29 43 94
  3. 05 06 78 90 68 29 43 94
  4. 05 06 78 43 68 29 90 94
  5. 05 06 29 43 68 78 90 94

If step 3 of an input is: 03 10 29 58 13 64 62 95, then what is step 4, if re-arrangement is done according to the above rule?

A

03 10 29 58 13 62 64 95

B

03 29 10 58 13 64 62 95

C

03 10 13 29 58 62 64 95

D

03 95 10 58 13 64 62 29

Soln.
Ans: a

In each step, the smallest numbers are being moved to the left, and in the next step largest to the right side. These are the steps for re-arrangement starting with 03 10 29 58 13 64 62 95:

  • 03 10 29 58 13 64 62 95
  • 03 10 29 58 13 62 64 95
  • 03 10 13 58 29 62 64 95
  • 03 10 13 29 58 62 64 95

Comments and Discussion