Discussion of Question with ID = 018 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

"easy 20 87 85 76 unit lady fade" is re-arranged according to a particular rule, in the steps mentioned below.

  1. easy fade 87 85 76 unit lady 20
  2. easy fade 87 85 lady unit 76 20
  3. easy fade lady 85 87 unit 76 20
  4. easy fade lady unit 87 85 76 20

If an input is: quad 74 face 03 60 lack 48 keys, then how many steps are required if re-arrangement is done according to the above rule?

A

6

B

5

C

4

D

7

Soln.
Ans: a

In each step, English words are moving to the left in the order in which they appear in a dictionary. The numbers are moving to the right in ascending order. An English word is placed, then a number, and so on. These are the steps for re-arrangement starting with quad 74 face 03 60 lack 48 keys:

  1. face 74 quad 03 60 lack 48 keys
  2. face 74 quad keys 60 lack 48 03
  3. face keys quad 74 60 lack 48 03
  4. face keys lack 74 60 quad 48 03
  5. face keys lack 74 quad 60 48 03
  6. face keys lack quad 74 60 48 03

Comments and Discussion