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

"gave 52 vase bank 98 63 emit 83" is re-arranged according to a particular rule, in the steps mentioned below.

  1. gave bank emit vase 83 98 63 52
  2. gave vase 63 emit 52 83 98 bank
  3. gave emit 98 63 bank 52 83 vase
  4. gave 63 83 98 vase bank 52 emit
  5. gave 98 52 83 emit vase bank 63
  6. gave 83 bank 52 63 emit vase 98
  7. gave 52 vase bank 98 63 emit 83
  8. gave bank emit vase 83 98 63 52

Which of the following steps would read as "maps 99 visa 49 26 warn quiz 69" if the input is "maps 26 99 69 quiz visa 49 warn", and the re-arrangement is done according to the above rule?

A

2

B

3

C

4

D

5

Soln.
Ans: a

In each step 1-2-3-4-5-6-7-8 becomes 1-4-7-3-8-5-6. These are the steps for re-arrangement starting with maps 26 99 69 quiz visa 49 warn:

  1. maps 69 49 99 warn quiz visa 26
  2. maps 99 visa 49 26 warn quiz 69
  3. maps 49 quiz visa 69 26 warn 99
  4. maps visa warn quiz 99 69 26 49
  5. maps quiz 26 warn 49 99 69 visa
  6. maps warn 69 26 visa 49 99 quiz
  7. maps 26 99 69 quiz visa 49 warn
  8. maps 69 49 99 warn quiz visa 26

Comments and Discussion