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

"fair gate laid 97 04 38 70 yeti" is re-arranged according to a particular rule, in the steps mentioned below.

  1. 97 gate fair laid yeti 04 38 70
  2. laid gate 97 fair 70 yeti 04 38
  3. fair gate laid 97 38 70 yeti 04
  4. 97 gate fair laid 04 38 70 yeti
  5. laid gate 97 fair yeti 04 38 70
  6. fair gate laid 97 70 yeti 04 38
  7. 97 gate fair laid 38 70 yeti 04
  8. laid gate 97 fair 04 38 70 yeti

Which of the following steps would read as "maps 13 visa calf 63 46 ache 17" if the input is "calf 13 maps visa 46 ache 17 63", and the re-arrangement is done according to the above rule?

A

5

B

6

C

3

D

4

Soln.
Ans: a

In each step, 4 comes to 1, 1 goes to 3, 3 goes to 4 and the last item goes to 6. These are the steps for re-arrangement starting with calf 13 maps visa 46 ache 17 63:

  1. visa 13 calf maps 63 46 ache 17
  2. maps 13 visa calf 17 63 46 ache
  3. calf 13 maps visa ache 17 63 46
  4. visa 13 calf maps 46 ache 17 63
  5. maps 13 visa calf 63 46 ache 17
  6. calf 13 maps visa 17 63 46 ache
  7. visa 13 calf maps ache 17 63 46
  8. maps 13 visa calf 46 ache 17 63

Comments and Discussion