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

"talk vase 32 84 92 have 38 year" is re-arranged according to a particular rule, in the steps mentioned below.

  1. talk have vase 38 32 84 92 year
  2. 38 talk have vase 92 84 32 year
  3. talk 38 vase 92 84 32 have year
  4. talk 32 38 vase have 92 84 year
  5. have talk 32 38 vase 84 92 year
  6. have 32 vase 38 talk 84 92 year
  7. 84 have 92 32 vase 38 talk year
  8. vase 84 32 have 92 38 talk year

Which of the following steps would read as "02 calf warp king kilo 70 28 27" if the input is "warp calf 02 28 king kilo 70 27", and the re-arrangement is done according to the above rule?

A

3

B

4

C

5

D

6

Soln.
Ans: a

In each step items at 1-2-3-4-5-6-7-8 respectively move to 1-4-7-3-2-5-6-8-. These are the steps for re-arrangement starting with warp calf 02 28 king kilo 70 27:

  1. warp king 28 calf kilo 70 02 27
  2. 28 warp king kilo 70 calf 02 27
  3. 02 calf warp king kilo 70 28 27
  4. 02 calf king warp 28 70 kilo 27
  5. kilo 02 warp 28 calf 70 king 27
  6. warp kilo 28 calf 02 70 king 27
  7. warp calf 28 02 70 kilo king 27
  8. warp king 02 28 70 kilo calf 27

Comments and Discussion