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

Question

"hair lady 85 52 urea 00 25 pack" is re-arranged according to a particular rule, in the steps mentioned below.

1. urea lady 85 52 hair 00 25 pack
2. urea lady pack 52 hair 00 25 85
3. urea pack lady 52 hair 00 25 85
4. urea pack lady 25 hair 00 52 85
5. urea pack lady 00 hair 25 52 85
6. urea pack lady hair 00 25 52 85

If an input is: oath 61 game 76 91 ware 60 walk, then what is step 7, if re-arrangement is done according to the above rule?

A

ware walk oath game 60 61 76 91

B

ware walk game 76 61 oath 60 91

C

ware walk game 60 61 oath 76 91

D

ware 61 game 76 91 oath 60 walk

Soln.
Ans: a

In each step, English words are moving to the left in the last to first order in which they appear in a dictionary. The numbers are moving to the right in decreasing order. An English word is placed, then a number, and so on. These are the steps for re-arrangement starting with oath 61 game 76 91 ware 60 walk:

1. ware 61 game 76 91 oath 60 walk
2. ware 61 game 76 walk oath 60 91
3. ware walk game 76 61 oath 60 91
4. ware walk game 60 61 oath 76 91
5. ware walk oath 60 61 game 76 91
6. ware walk oath 60 game 61 76 91
7. ware walk oath game 60 61 76 91